KrisLibrary  1.0.0
GLFog.h
1 #ifndef GL_FOG_H
2 #define GL_FOG_H
3 
4 #include "GLColor.h"
6 
7 namespace GLDraw {
8 
9 using namespace Math;
10 
11 class GLFog
12 {
13 public:
14  enum Type { None, Linear, Exponential, ExponentialSquared };
15 
16  GLFog();
17 
18  void setNone();
19  void setLinear(Real start, Real end);
20  void setExponential(Real density);
21  void setExponentialSquared(Real density);
22  void setCurrent();
23  void unsetCurrent();
24 
25  Type type;
26  GLColor color;
27  Real start,end;
28  Real density;
29 };
30 
31 } //namespace GLDraw
32 
33 #endif
Common math typedefs, constants, functions.
Contains all definitions in the GLDraw package.
Definition: AnyGeometry.h:14
An rgba color.
Definition: GLColor.h:9
Contains all definitions in the Math package.
Definition: WorkspaceBound.h:12
Definition: GLFog.h:11