Question about efficiency... structures and stuff
Alright, I have the following code:
Code:
class winStrct_T {
public:
struct BLACK_t {
int r;
int g;
int b;
} BLACK;
struct WHITE_t {
int r;
int g;
int b;
} WHITE;
struct GREEN_t {
int r;
int g;
int b;
} GREEN;
struct BLUE_t {
int r;
int g;
int b;
} BLUE;
void set_colours(void);
protected:
int tmpVar;
} winStrct;
and it works, but I'm wondering if there is a more efficient way to do this? I don't know too much about unions, or structure pointers, however I feel that there's probably a way to improve this code...