views:

46

answers:

1

In GDI+ you can do

Color::Green, Color::AliceBlue, etc, as listed here

I'm looking for a similar pre-baked color enumeration for D3DCOLOR structs from a DirectX header, but I don't know where one is.

A: 

It turns out if you just #include <gdiplus.h>, the Color class defined therein is completely compatible with D3DCOLOR. So you can use the Color:: constants in GDIPlus when drawing with D3D.

bobobobo