Parasol Planning Library (PPL)
Color.h
Go to the documentation of this file.
1 #ifndef COLOR_H_
2 #define COLOR_H_
3 
4 #include <Vector.h>
5 
6 typedef mathtool::Vector<float, 3> Color3;
7 typedef mathtool::Vector<float, 4> Color4;
8 
9 #ifdef VIZMO
10 
11 #ifdef __APPLE__
12  #include <OpenGL/gl.h>
13 #elif _WIN32
14  #define NOMINMAX
15  #include <windows.h>
16  #include <gl.h>
17 #else
18  #include <gl.h>
19 #endif
20 
21 inline void SetGLColor(const Color3& _c) {glColor3fv(_c);}
22 inline void SetGLColor(const Color4& _c) {glColor4fv(_c);}
23 
24 #endif
25 
26 #endif
mathtool::Vector< float, 3 > Color3
RGB color, range from 0-1.
Definition: Color.h:6
mathtool::Vector< float, 4 > Color4
RGBA color, range from 0-1.
Definition: Color.h:7