D:/Programming/GUI Editor (Source)/Color.h
00001 #ifndef COLOR_H
00002 #define COLOR_H
00003 
00004 struct tRGBA
00005 {
00006         tRGBA(float r = -1, float g = -1, float b = -1, float a = -1) : R(r), G(g), B(b), A(a) { }
00007 
00008         union
00009         {
00010                 struct
00011                 {
00012                         float R;        
00013                         float G;        
00014                         float B;        
00015                         float A;        
00016                 };
00017                 
00018                 float RGBA[4];
00019         };
00020                 float operator[] (UINT i)
00021                 {
00022                         if(i >=0 && i< 4)
00023                                 return RGBA[i];
00024 
00025                         return 0;
00026                 };
00027 
00028 };
00029 
00030 #endif
Generated on Sun Jul 17 21:34:26 2005 for OpenGL GUI by
 1.3.8
 1.3.8