aboutsummaryrefslogtreecommitdiff
path: root/Source/Fog.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-17 14:20:54 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-17 14:22:53 +0700
commit602a0c5951050e7cce645534cb4f136cf9f4fee4 (patch)
treee70e63b0b0058830e58c244ad917bc892c10418f /Source/Fog.cpp
parent094e12df1ebb81d304803be4b274546384ec117c (diff)
downloadblackshades-602a0c5951050e7cce645534cb4f136cf9f4fee4.tar.gz
Rename source and build directory1.1.1
Diffstat (limited to 'Source/Fog.cpp')
-rw-r--r--Source/Fog.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/Source/Fog.cpp b/Source/Fog.cpp
deleted file mode 100644
index 21ca229..0000000
--- a/Source/Fog.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-/**> HEADER FILES <**/
-#include "Fog.h"
-
-void Fog::SetFog(float colorR, float colorG, float colorB, float fStart, float fEnd, float Density)
-{
- fogColor[0]=colorR;
- fogColor[1]=colorG;
- fogColor[2]=colorB;
- fogColor[3]=1;
- fogStart=fStart;
- fogEnd=fEnd;
- fogDensity=Density;
- fogMode=GL_LINEAR;
-
- glFogi(GL_FOG_MODE,fogMode);
- glFogfv(GL_FOG_COLOR,fogColor);
- glFogf(GL_FOG_DENSITY,fogDensity);
- glFogi(GL_FOG_HINT,GL_DONT_CARE);
- glFogi(GL_FOG_START,fogStart);
- glFogi(GL_FOG_END,fogEnd);
-
- glEnable(GL_FOG);
-}
-
-void Fog::TempFog(float colorR, float colorG, float colorB)
-{
- GLfloat tempfogColor[4];
- tempfogColor[0]=colorR;
- tempfogColor[1]=colorG;
- tempfogColor[2]=colorB;
- tempfogColor[3]=1;
-
- glFogi(GL_FOG_MODE,fogMode);
- glFogfv(GL_FOG_COLOR,tempfogColor);
- glFogf(GL_FOG_DENSITY,fogDensity);
- glFogi(GL_FOG_HINT,GL_DONT_CARE);
- glFogi(GL_FOG_START,fogStart);
- glFogi(GL_FOG_END,fogEnd);
-
- glEnable(GL_FOG);
-}
-
-void Fog::ResetFog()
-{
- glFogi(GL_FOG_MODE,fogMode);
- glFogfv(GL_FOG_COLOR,fogColor);
- glFogf(GL_FOG_DENSITY,fogDensity);
- glFogi(GL_FOG_HINT,GL_DONT_CARE);
- glFogi(GL_FOG_START,fogStart);
- glFogi(GL_FOG_END,fogEnd);
-
- glEnable(GL_FOG);
-}
-