i have a const enum in my c++ code and i wanna know if i could loop through those colors with by example an integer reference to each member of this enum
const enum Colors
{
#define WHITE(alpha) D3DCOLOR_ARGB(alpha, 255, 255, 255)//
#define RED(alpha) D3DCOLOR_ARGB(alpha, 255, 000, 000)//
#define GREEN(alpha) D3DCOLOR_ARGB(alpha, 000, 255, 000)//
#define BLUE(alpha) D3DCOLOR_ARGB(alpha, 000, 000, 255)//
#define BLACK(alpha) D3DCOLOR_ARGB(alpha, 000, 000, 000)//
#define PURPLE(alpha) D3DCOLOR_ARGB(alpha, 125, 000, 255)//
#define GREY(alpha) D3DCOLOR_ARGB(alpha, 44,44, 46) //
#define YELLOW(alpha) D3DCOLOR_ARGB(alpha, 255, 255, 000)//
#define ORANGE(alpha) D3DCOLOR_ARGB(alpha, 255, 165, 000)//
#define DEEPSKYBLUE(alpha) D3DCOLOR_ARGB(alpha, 30, 144, 255) //
#define CHOCOLATE2(alpha) D3DCOLOR_ARGB(alpha, 238, 118, 33) //
};
this list is not complete -> i have lot of colors in my enum
so i really wonder if i can loop through all the colors with a keyboard shortcut that can loop through this enum...
#define WHITE(alpha) D3DCOLOR_ARGB(alpha, 255, 255, 255) = 1//<< something like that
i tried that but it is not possible...