GlistEngine
Loading...
Searching...
No Matches
gFog.h
Go to the documentation of this file.
1/*
2 * gFog.h
3 *
4 * Created on: Aug 15, 2021
5 * Author: furka
6 */
7
8#ifndef GRAPHICS_GFOG_H_
9#define GRAPHICS_GFOG_H_
10
11
12#include <gRenderObject.h>
13#include <gColor.h>
14
19class gFog : public gRenderObject {
20public:
21 static int fognum;
22
24
28 void enable();
29
33 void disable();
34
42 void setColor(float r, float g, float b);
43
50 void setMode(int value);
51
56 void setDensity(float value);
57
63 void setGradient(float value);
64
69 void setLinearStart(float value);
70
75 void setLinearEnd(float value);
76
81 const gColor& getColor() const;
82
89 int getMode() const;
90
95 float getDensity() const;
96
101 float getGradient() const;
102
107 float getLinearStart() const;
108
113 float getLinearEnd() const;
114
115private:
116 int fogno;
117 gColor color;
118 float density;
119 float gradient;
120 int mode;
121 float linearstart, linearend;
122};
123
124
125#endif /* GRAPHICS_GFOG_H_ */
Definition gColor.h:17
Definition gFog.h:19
float getDensity() const
void setGradient(float value)
void setColor(float r, float g, float b)
void setMode(int value)
void enable()
void setLinearEnd(float value)
int getMode() const
float getLinearEnd() const
static int fognum
Definition gFog.h:21
const gColor & getColor() const
float getLinearStart() const
void setLinearStart(float value)
void disable()
float getGradient() const
void setDensity(float value)
Definition gRenderObject.h:25
float r
Definition gColor.h:22
float b
Definition gColor.h:22
float g
Definition gColor.h:22