PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
gl_color.h
1 #ifndef GLCOLOR_H
2 #define GLCOLOR_H
3 
4 #include <SDL2/SDL_opengl.h>
5 #include <QString>
6 
7 class GlColor
8 {
9 public:
10  GlColor();
11  GlColor(const GlColor &clr);
12  GlColor(GLuint rgba);
13  GlColor(QString rgba);
14  ~GlColor();
15  void setRgba(GLuint rgba);
16  void setRgba(QString rgba);
17  void setRed(float _r);
18  void setGreen(float _g);
19  void setBlue(float _b);
20  void setAlpha(float _a);
21  void setRedI(float _r);
22  void setGreenI(float _g);
23  void setBlueI(float _b);
24  void setAlphaI(float _a);
25  float Red();
26  float Green();
27  float Blue();
28  float Alpha();
29 private:
30  float r;
31  float g;
32  float b;
33  float a;
34 };
35 
36 #endif // GLCOLOR_H
Definition: gl_color.h:7