#include <ExManagerFog.h>
Membres publics | |
ExManagerFog (void) | |
~ExManagerFog (void) | |
void | SetManagerId (ExManagerId *Id) |
void | Reset (void) |
void | EnableFog (void) |
void | DisableFog (void) |
bool | GetState (void) |
void | SetFogColor (float R, float G, float B, float A) |
void | SetFogColorR (float R) |
float | GetFogColorR (void) |
void | IncFogColorR (float inc) |
void | SetFogColorG (float G) |
float | GetFogColorG (void) |
void | IncFogColorG (float inc) |
void | SetFogColorB (float B) |
float | GetFogColorB (void) |
void | IncFogColorB (float inc) |
void | SetFogColorA (float A) |
float | GetFogColorA (void) |
void | IncFogColorA (float inc) |
void | SetStartPoint (float P) |
float | GetStarPoint (void) |
void | IncStartPoint (float inc) |
void | SetEndPoint (float P) |
float | GetEndPoint (void) |
void | IncEndPoint (float inc) |
void | SetDensity (float P) |
float | GetDensity (void) |
void | IncDensity (float inc) |
GLenum | GetAlgo (void) |
void | SetAlgo (GLenum algo) |
Attributs Publics | |
std::ostrstream * | Consol |
void(* | WriteToConsol )(const char *Label) |
Attributs Privés | |
ExManagerId * | ManagerId |
GLfloat | m_FogColor [4] |
GLfloat | m_StartPoint |
GLfloat | m_EndPoint |
GLfloat | m_Density |
GLenum | m_FogAlgo |
bool | m_State |
|
Définition à la ligne 26 du fichier ExManagerFog.cpp. Références ExManagerFog(), Guard, Reset(), et UnGuard. Référencé par ExManagerFog(), et ~ExManagerFog().
00027 { 00028 Guard(ExManagerFog::ExManagerFog(void)) 00029 Reset(); 00030 UnGuard 00031 } |
|
Définition à la ligne 33 du fichier ExManagerFog.cpp. Références ExManagerFog(), Guard, et UnGuard.
00034 { 00035 Guard(ExManagerFog::~ExManagerFog(void)) 00036 UnGuard 00037 } |
|
Définition à la ligne 65 du fichier ExManagerFog.cpp. Références DisableFog(), Guard, m_State, et UnGuard. Référencé par DisableFog(), et ExManagerCommand::ProcessAction().
00066 { 00067 Guard(ExManagerFog::DisableFog(void)) 00068 glDisable(GL_FOG); 00069 m_State=false; 00070 UnGuard 00071 } |
|
Définition à la ligne 51 du fichier ExManagerFog.cpp. Références EnableFog(), Guard, m_Density, m_EndPoint, m_FogAlgo, m_FogColor, m_StartPoint, m_State, et UnGuard. Référencé par EnableFog(), et ExManagerCommand::ProcessAction().
00052 { 00053 Guard(ExManagerFog::EnableFog(void)) 00054 glEnable(GL_FOG); 00055 glFogi(GL_FOG_MODE,m_FogAlgo);//GL_EXP,GL_EXP2,GL_LINEAR 00056 glFogfv(GL_FOG_COLOR,m_FogColor); 00057 glFogf(GL_FOG_DENSITY,m_Density); 00058 glHint(GL_FOG_HINT,GL_DONT_CARE); 00059 glFogf(GL_FOG_START,m_StartPoint); 00060 glFogf(GL_FOG_END,m_EndPoint); 00061 m_State=true; 00062 UnGuard 00063 } |
|
Définition à la ligne 92 du fichier ExManagerFog.h. Références m_FogAlgo.
00092 {return m_FogAlgo;} |
|
Définition à la ligne 89 du fichier ExManagerFog.h. Références m_Density. Référencé par IncDensity().
00089 {return m_Density;} |
|
Définition à la ligne 85 du fichier ExManagerFog.h. Références m_EndPoint. Référencé par IncEndPoint().
00085 {return m_EndPoint;} |
|
Définition à la ligne 77 du fichier ExManagerFog.h. Références m_FogColor. Référencé par IncFogColorA().
00077 {return m_FogColor[3];} |
|
Définition à la ligne 74 du fichier ExManagerFog.h. Références m_FogColor. Référencé par IncFogColorB().
00074 {return m_FogColor[2];} |
|
Définition à la ligne 71 du fichier ExManagerFog.h. Références m_FogColor. Référencé par IncFogColorG().
00071 {return m_FogColor[1];} |
|
Définition à la ligne 68 du fichier ExManagerFog.h. Références m_FogColor. Référencé par IncFogColorR().
00068 {return m_FogColor[0];} |
|
Définition à la ligne 81 du fichier ExManagerFog.h. Références m_StartPoint. Référencé par IncStartPoint().
00081 {return m_StartPoint;} |
|
Définition à la ligne 64 du fichier ExManagerFog.h. Références m_State.
00064 {return m_State;} |
|
Définition à la ligne 190 du fichier ExManagerFog.cpp. Références GetDensity(), Guard, IncDensity(), SetDensity(), et UnGuard. Référencé par IncDensity().
00191 { 00192 Guard(ExManagerFog::IncDensity(float inc)) 00193 SetDensity(GetDensity()+inc); 00194 UnGuard 00195 } |
|
Définition à la ligne 175 du fichier ExManagerFog.cpp. Références GetEndPoint(), Guard, IncEndPoint(), SetEndPoint(), et UnGuard. Référencé par IncEndPoint().
00176 { 00177 Guard(ExManagerFog::IncEndPoint(float inc)) 00178 SetEndPoint(GetEndPoint()+inc); 00179 UnGuard 00180 } |
|
Définition à la ligne 145 du fichier ExManagerFog.cpp. Références GetFogColorA(), Guard, IncFogColorA(), SetFogColorA(), et UnGuard. Référencé par IncFogColorA().
00146 { 00147 Guard(ExManagerFog::IncFogColorA(float inc)) 00148 SetFogColorA(GetFogColorA()+inc); 00149 UnGuard 00150 } |
|
Définition à la ligne 138 du fichier ExManagerFog.cpp. Références GetFogColorB(), Guard, IncFogColorB(), SetFogColorB(), et UnGuard. Référencé par IncFogColorB().
00139 { 00140 Guard(ExManagerFog::IncFogColorB(float inc)) 00141 SetFogColorB(GetFogColorB()+inc); 00142 UnGuard 00143 } |
|
Définition à la ligne 131 du fichier ExManagerFog.cpp. Références GetFogColorG(), Guard, IncFogColorG(), SetFogColorG(), et UnGuard. Référencé par IncFogColorG().
00132 { 00133 Guard(ExManagerFog::IncFogColorG(float inc)) 00134 SetFogColorG(GetFogColorG()+inc); 00135 UnGuard 00136 } |
|
Définition à la ligne 124 du fichier ExManagerFog.cpp. Références GetFogColorR(), Guard, IncFogColorR(), SetFogColorR(), et UnGuard. Référencé par IncFogColorR().
00125 { 00126 Guard(ExManagerFog::IncFogColorR(float inc)) 00127 SetFogColorR(GetFogColorR()+inc); 00128 UnGuard 00129 } |
|
Définition à la ligne 160 du fichier ExManagerFog.cpp. Références GetStarPoint(), Guard, IncStartPoint(), SetStartPoint(), et UnGuard. Référencé par IncStartPoint().
00161 { 00162 Guard(ExManagerFog::IncStartPoint(float inc)) 00163 SetStartPoint(GetStarPoint()+inc); 00164 UnGuard 00165 } |
|
Définition à la ligne 39 du fichier ExManagerFog.cpp. Références Guard, m_State, Reset(), SetAlgo(), SetDensity(), SetEndPoint(), SetFogColor(), SetStartPoint(), et UnGuard. Référencé par ExManagerFog(), ExManagerCommand::ProcessAction(), et Reset().
00040 { 00041 Guard(ExManagerFog::Reset(void)) 00042 SetAlgo(GL_LINEAR); 00043 SetFogColor(0.2f,0.2f,0.2f,1.0f); 00044 SetStartPoint(50.0f); 00045 SetEndPoint(100.0f); 00046 SetDensity(0.30); 00047 m_State=false; 00048 UnGuard 00049 } |
|
Définition à la ligne 197 du fichier ExManagerFog.cpp. Références Guard, m_FogAlgo, SetAlgo(), et UnGuard. Référencé par ExManagerCommand::ProcessAction(), Reset(), et SetAlgo().
00198 { 00199 Guard(ExManagerFog::SetAlgo(GLenum algo)) 00200 switch(algo) 00201 { 00202 case GL_LINEAR: 00203 m_FogAlgo=GL_LINEAR; 00204 glFogi(GL_FOG_MODE,GL_LINEAR); 00205 break; 00206 case GL_EXP: 00207 m_FogAlgo=GL_EXP; 00208 glFogi(GL_FOG_MODE,GL_EXP); 00209 break; 00210 case GL_EXP2: 00211 m_FogAlgo=GL_EXP2; 00212 glFogi(GL_FOG_MODE,GL_EXP2); 00213 break; 00214 default : 00215 m_FogAlgo=GL_LINEAR; 00216 glFogi(GL_FOG_MODE,GL_LINEAR); 00217 break; 00218 } 00219 UnGuard 00220 } |
|
Définition à la ligne 182 du fichier ExManagerFog.cpp. Références Guard, m_Density, SetDensity(), et UnGuard. Référencé par IncDensity(), ExManagerCommand::ProcessAction(), Reset(), et SetDensity().
00183 { 00184 Guard(ExManagerFog::SetDensity(float P)) 00185 m_Density=P; 00186 glFogf(GL_FOG_DENSITY,m_Density); 00187 UnGuard 00188 } |
|
Définition à la ligne 167 du fichier ExManagerFog.cpp. Références Guard, m_EndPoint, SetEndPoint(), et UnGuard. Référencé par IncEndPoint(), ExManagerCommand::ProcessAction(), Reset(), et SetEndPoint().
00168 { 00169 Guard(ExManagerFog::SetEndPoint(float P)) 00170 m_EndPoint=P; 00171 glFogf(GL_FOG_END,m_EndPoint); 00172 UnGuard 00173 } |
|
Définition à la ligne 74 du fichier ExManagerFog.cpp. Références A, B, Guard, SetFogColor(), SetFogColorA(), SetFogColorB(), SetFogColorG(), SetFogColorR(), et UnGuard. Référencé par Reset(), et SetFogColor().
00075 { 00076 Guard(ExManagerFog::SetFogColor(float R,float G,float B,float A)) 00077 SetFogColorR(R); 00078 SetFogColorG(G); 00079 SetFogColorB(B); 00080 SetFogColorA(A); 00081 UnGuard 00082 } |
|
Définition à la ligne 114 du fichier ExManagerFog.cpp. Références A, Guard, m_FogColor, SetFogColorA(), et UnGuard. Référencé par IncFogColorA(), SetFogColor(), et SetFogColorA().
00115 { 00116 Guard(ExManagerFog::SetFogColorA(float A)) 00117 if(A>1.0f)A=1.0f; 00118 if(A<0.0f)A=0.0f; 00119 m_FogColor[3]=A; 00120 glFogfv(GL_FOG_COLOR,m_FogColor); 00121 UnGuard 00122 } |
|
Définition à la ligne 104 du fichier ExManagerFog.cpp. Références B, Guard, m_FogColor, SetFogColorB(), et UnGuard. Référencé par IncFogColorB(), ExManagerCommand::ProcessAction(), SetFogColor(), et SetFogColorB().
00105 { 00106 Guard(ExManagerFog::SetFogColorB(float B)) 00107 if(B>1.0f)B=1.0f; 00108 if(B<0.0f)B=0.0f; 00109 m_FogColor[2]=B; 00110 glFogfv(GL_FOG_COLOR,m_FogColor); 00111 UnGuard 00112 } |
|
Définition à la ligne 94 du fichier ExManagerFog.cpp. Références Guard, m_FogColor, SetFogColorG(), et UnGuard. Référencé par IncFogColorG(), ExManagerCommand::ProcessAction(), SetFogColor(), et SetFogColorG().
00095 { 00096 Guard(ExManagerFog::SetFogColorG(float G)) 00097 if(G>1.0f)G=1.0f; 00098 if(G<0.0f)G=0.0f; 00099 m_FogColor[1]=G; 00100 glFogfv(GL_FOG_COLOR,m_FogColor); 00101 UnGuard 00102 } |
|
Définition à la ligne 84 du fichier ExManagerFog.cpp. Références Guard, m_FogColor, SetFogColorR(), et UnGuard. Référencé par IncFogColorR(), ExManagerCommand::ProcessAction(), SetFogColor(), et SetFogColorR().
00085 { 00086 Guard(ExManagerFog::SetFogColorR(float R)) 00087 if(R>1.0f)R=1.0f; 00088 if(R<0.0f)R=0.0f; 00089 m_FogColor[0]=R; 00090 glFogfv(GL_FOG_COLOR,m_FogColor); 00091 UnGuard 00092 } |
|
Définition à la ligne 58 du fichier ExManagerFog.h. Référencé par SetManagerLink().
00058 {ManagerId = Id;} |
|
Définition à la ligne 152 du fichier ExManagerFog.cpp. Références Guard, m_StartPoint, SetStartPoint(), et UnGuard. Référencé par IncStartPoint(), ExManagerCommand::ProcessAction(), Reset(), et SetStartPoint().
00153 { 00154 Guard(ExManagerFog::SetStartPoint(float P)) 00155 m_StartPoint=P; 00156 glFogf(GL_FOG_START,m_StartPoint); 00157 UnGuard 00158 } |
|
Définition à la ligne 55 du fichier ExManagerFog.h. Référencé par SetManagerLink(). |
|
Définition à la ligne 43 du fichier ExManagerFog.h. Référencé par EnableFog(), GetDensity(), et SetDensity(). |
|
Définition à la ligne 42 du fichier ExManagerFog.h. Référencé par EnableFog(), GetEndPoint(), et SetEndPoint(). |
|
Définition à la ligne 44 du fichier ExManagerFog.h. |
|
Définition à la ligne 40 du fichier ExManagerFog.h. Référencé par EnableFog(), GetFogColorA(), GetFogColorB(), GetFogColorG(), GetFogColorR(), SetFogColorA(), SetFogColorB(), SetFogColorG(), et SetFogColorR(). |
|
Définition à la ligne 41 du fichier ExManagerFog.h. Référencé par EnableFog(), GetStarPoint(), et SetStartPoint(). |
|
Définition à la ligne 45 du fichier ExManagerFog.h. Référencé par DisableFog(), EnableFog(), GetState(), et Reset(). |
|
Définition à la ligne 39 du fichier ExManagerFog.h. |
|
Référencé par SetManagerLink(). |