ifndef COLOR3D_H define COLOR3D_H ifdef __APPLE__ include OpenGL gl en

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef COLOR3D_H
#define COLOR3D_H
#ifdef __APPLE__
#include "OpenGL/gl.h"
#endif
#ifdef linux
#include "GL/gl.h"
#endif
#ifdef _WIN32
#include <gl\gl.h>
#endif
class Color3D
{
public:
Color3D(GLfloat r = 0.0f, GLfloat g = 0.0f, GLfloat b = 0.0f, GLfloat a = 0.0f);
GLfloat r;
GLfloat g;
GLfloat b;
GLfloat a;
static Color3D Red;
static Color3D Green;
static Color3D Blue;
};
#endif // COLOR3D_H