For instance:
Code: Select all
#ifdef __cplusplus
class GXColor
{
public:
uint8_t r,g,b,a;
GXColor() {r=0; g=0; b=0; a=0;}
GXColor( u8 R, u8 G, u8 B, u8 A) : r(A), g(G), b(B), a(A) {}
};
#else
typedef struct _gx_color {
u8 r; /*!< Red color component. */
u8 g; /*!< Green color component. */
u8 b; /*!< Blue alpha component. */
u8 a; /*!< Alpha component. If a function does not use the alpha value, it is safely ignored. */
} GXColor;
#endif
I'm sure I'll find others... feel free to use these yourselves, after all, anyone can make them on their own XD
Note that GXColor is located in gx.h
Have a nice day.