Page principale | Liste des namespaces | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Membres des namespaces | Composants | Déclarations

Référence de la classe ExManagerFog

#include <ExManagerFog.h>

Graphe d'héritage de la classe ExManagerFog

ExManager

Membres publics

void Reset (void)
void Init (void)
void Draw (void)
ExCAction InputCommand (ExCCommand Command)
ExCAction InputAction (ExCAction Action)
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)
void SetVolumetricFogCoord (GLfloat Value)
void SetFlux (std::ostrstream *consol, ExCFluxAction *action)
bool GetStatus (void)
void SetStatus (bool status)
void SetAskForCommand (bool status)
void SetAskForExclusifCommand (bool status)
bool AskForCommand (void)
bool AskForExclusifCommand (void)
virtual void Reload (void)

Membres publics statiques

ExManagerFogCreateSingleton (void)

Attributs Publics

std::ostrstream * Consol
ExCFluxActionFluxAction

Attributs Protégés

bool m_Status
bool m_AskForCommand
bool m_Exclusif

Membres privés

 ExManagerFog (void)
 ~ExManagerFog (void)

Attributs Privés

GLfloat m_FogColor [4]
GLfloat m_StartPoint
GLfloat m_EndPoint
GLfloat m_Density
GLenum m_FogAlgo
bool m_State
PFNGLFOGCOORDFEXTPROC glFogCoordfEXT

Attributs Privés Statiques

bool m_flag = false
ExManagerFogm_instance = NULL

Documentation des contructeurs et destructeurs

ExManagerFog::ExManagerFog void   )  [private]
 

Définition à la ligne 43 du fichier ExManagerFog.cpp.

Références ExManagerFog(), Guard, Reset(), et UnGuard.

Référencé par ExManagerFog(), et ~ExManagerFog().

00044 {
00045 Guard(ExManagerFog::ExManagerFog(void))
00046         Reset();
00047 UnGuard
00048 }

ExManagerFog::~ExManagerFog void   )  [private]
 

Définition à la ligne 50 du fichier ExManagerFog.cpp.

Références ExManagerFog(), Guard, et UnGuard.

00051 {
00052 Guard(ExManagerFog::~ExManagerFog(void))
00053 UnGuard
00054 }


Documentation des méthodes

bool ExManager::AskForCommand void   )  [inline, inherited]
 

Définition à la ligne 89 du fichier ExManager.h.

Références ExManager::m_AskForCommand.

Référencé par ExManagerCommand::InputCommand().

00089 {return m_AskForCommand;}

bool ExManager::AskForExclusifCommand void   )  [inline, inherited]
 

Définition à la ligne 90 du fichier ExManager.h.

Références ExManager::m_Exclusif.

Référencé par ExManagerCommand::InputCommand().

00090 {return m_Exclusif;}

ExManagerFog * ExManagerFog::CreateSingleton void   )  [static]
 

Définition à la ligne 29 du fichier ExManagerFog.cpp.

Références CreateSingleton(), Guard, m_flag, m_instance, et UnGuard.

Référencé par CreateManager(), et CreateSingleton().

00029                                                {
00030 Guard(ExManagerFog* ExManagerFog::CreateSingleton(void))
00031         if(!m_flag)
00032         {
00033                 m_flag = true; // We are creating the error log now, so set flag to true
00034                 m_instance = new ExManagerFog; // Create the error log
00035         }else
00036         {
00037                 std::cout<<"Error singleton already created"<<std::endl;
00038         }
00039         return m_instance; 
00040 UnGuard
00041 }

void ExManagerFog::DisableFog void   ) 
 

Définition à la ligne 184 du fichier ExManagerFog.cpp.

Références DisableFog(), Guard, m_State, et UnGuard.

Référencé par DisableFog(), Draw(), InputAction(), ExCHeightMap::RenderHeightMap(), et Reset().

00185 {
00186 Guard(ExManagerFog::DisableFog(void))
00187         glDisable(GL_FOG);
00188         m_State=false;
00189 UnGuard
00190 }

void ExManagerFog::Draw void   ) 
 

Définition à la ligne 89 du fichier ExManagerFog.cpp.

Références DisableFog(), Draw(), EnableFog(), glFogCoordfEXT, Guard, et UnGuard.

Référencé par Draw().

00090 {
00091 Guard(ExManagerFog::Draw(void))
00092 EnableFog();
00093 glPushAttrib(GL_ALL_ATTRIB_BITS);
00094         glColor3f(0.0f,0.0f,0.5f);
00095         glBegin(GL_QUADS);                                                                                                      // Back Wall
00096                 glFogCoordfEXT( 0.0f);  glVertex3f(-100.0f,-100.0f,-100.0f);
00097                 glFogCoordfEXT( 0.0f);  glVertex3f( 100.0f,-100.0f,-100.0f);
00098                 glFogCoordfEXT( 0.0f);  glVertex3f( 100.0f, 100.0f,-100.0f);
00099                 glFogCoordfEXT( 0.0f);  glVertex3f(-100.0f, 100.0f,-100.0f);
00100         glEnd();
00101 
00102         glBegin(GL_QUADS);                                                                                                      // Floor
00103                 glFogCoordfEXT( 0.0f);  glVertex3f(-100.0f,-100.0f,-100.0f);
00104                 glFogCoordfEXT( 0.0f);  glVertex3f( 100.0f,-100.0f,-100.0f);
00105                 glFogCoordfEXT( 1.0f);  glVertex3f( 100.0f,-100.0f, 100.0f);
00106                 glFogCoordfEXT( 1.0f);  glVertex3f(-100.0f,-100.0f, 100.0f);
00107         glEnd();
00108 
00109         glBegin(GL_QUADS);                                                                                                      // Roof
00110                 glFogCoordfEXT( 0.0f);  glVertex3f(-100.0f, 100.0f,-100.0f);
00111                 glFogCoordfEXT( 0.0f);  glVertex3f( 100.0f, 100.0f,-100.0f);
00112                 glFogCoordfEXT( 1.0f);  glVertex3f( 100.0f, 100.0f, 100.0f);
00113                 glFogCoordfEXT( 1.0f);  glVertex3f(-100.0f, 100.0f, 100.0f);
00114         glEnd();
00115 
00116         glBegin(GL_QUADS);                                                                                                      // Right Wall
00117                 glFogCoordfEXT( 1.0f);  glVertex3f( 100.0f,-100.0f, 100.0f);
00118                 glFogCoordfEXT( 1.0f);  glVertex3f( 100.0f, 100.0f, 100.0f);
00119                 glFogCoordfEXT( 0.0f);  glVertex3f( 100.0f, 100.0f,-100.0f);
00120                 glFogCoordfEXT( 0.0f);  glVertex3f( 100.0f,-100.0f,-100.0f);
00121         glEnd();
00122 
00123         glBegin(GL_QUADS);                                                                                                      // Left Wall
00124                 glFogCoordfEXT( 1.0f);  glVertex3f(-100.0f,-100.0f, 100.0f);
00125                 glFogCoordfEXT( 1.0f);  glVertex3f(-100.0f, 100.0f, 100.0f);
00126                 glFogCoordfEXT( 0.0f);  glVertex3f(-100.0f, 100.0f,-100.0f);
00127                 glFogCoordfEXT( 0.0f);  glVertex3f(-100.0f,-100.0f,-100.0f);
00128         glEnd();
00129 
00130         glPopAttrib();
00131 DisableFog();
00132 UnGuard
00133 }

void ExManagerFog::EnableFog void   ) 
 

Définition à la ligne 143 du fichier ExManagerFog.cpp.

Références EnableFog(), Guard, m_State, et UnGuard.

Référencé par Draw(), EnableFog(), InputAction(), et ExCHeightMap::RenderHeightMap().

00144 {
00145 Guard(ExManagerFog::EnableFog(void))
00146         m_State=true;
00147 /*      glEnable(GL_FOG);
00148         glFogi(GL_FOG_MODE,m_FogAlgo);//GL_EXP,GL_EXP2,GL_LINEAR
00149         glFogfv(GL_FOG_COLOR,m_FogColor);
00150         glFogf(GL_FOG_START,m_StartPoint);
00151         glFogf(GL_FOG_END,m_EndPoint);
00152 
00153         glFogf(GL_FOG_DENSITY,m_Density);
00154         glHint(GL_FOG_HINT,GL_DONT_CARE);
00155 
00156         glFogi(GL_FOG_COORDINATE_SOURCE_EXT, GL_FOG_COORDINATE_EXT);
00157 */
00158         /*glEnable(GL_FOG);                                                                                                     // Enable Fog
00159         glFogi(GL_FOG_MODE, GL_LINEAR);                                                                         // Fog Fade Is Linear
00160         glFogfv(GL_FOG_COLOR, m_FogColor);                                                                      // Set The Fog Color
00161         glFogf(GL_FOG_START,  1.0f);                                                                            // Set The Fog Start
00162         glFogf(GL_FOG_END,    0.0f);                                                                            // Set The Fog End
00163         glHint(GL_FOG_HINT, GL_NICEST);                                                                         // Per-Pixel Fog Calculation
00164         glFogi(GL_FOG_COORDINATE_SOURCE_EXT, GL_FOG_COORDINATE_EXT);            // Set Fog Based On Vertice Coordinates
00165         */
00166         float fogColor[4] = {0.8f, 0.8f, 0.8f, 1.0f};
00167 
00168         glEnable(GL_FOG);                                               // Turn on fog
00169         glFogi(GL_FOG_MODE, GL_LINEAR);                 // Set the fog mode to LINEAR (Important)
00170         glFogfv(GL_FOG_COLOR, fogColor);                // Give OpenGL our fog color
00171         glFogf(GL_FOG_START, 0.0);                              // Set the start position for the depth at 0
00172         glFogf(GL_FOG_END, 50.0);                               // Set the end position for the detph at 50
00173         glHint(GL_FOG_HINT, GL_NICEST); 
00174 
00175         // Now we tell OpenGL that we are using our fog extension for per vertex
00176         // fog calculations.  For each vertex that needs fog applied to it we must
00177         // use the glFogCoordfEXT() function with a depth value passed in.
00178         // These flags are defined in main.h and are not apart of the normal opengl headers.
00179         glFogi(GL_FOG_COORDINATE_SOURCE_EXT, GL_FOG_COORDINATE_EXT);
00180 
00181 UnGuard
00182 }

GLenum ExManagerFog::GetAlgo void   )  [inline]
 

Définition à la ligne 126 du fichier ExManagerFog.h.

Références m_FogAlgo.

00126 {return m_FogAlgo;}

float ExManagerFog::GetDensity void   )  [inline]
 

Définition à la ligne 123 du fichier ExManagerFog.h.

Références m_Density.

Référencé par IncDensity().

00123 {return m_Density;}

float ExManagerFog::GetEndPoint void   )  [inline]
 

Définition à la ligne 119 du fichier ExManagerFog.h.

Références m_EndPoint.

Référencé par IncEndPoint().

00119 {return m_EndPoint;}

float ExManagerFog::GetFogColorA void   )  [inline]
 

Définition à la ligne 111 du fichier ExManagerFog.h.

Références m_FogColor.

Référencé par IncFogColorA().

00111 {return m_FogColor[3];}

float ExManagerFog::GetFogColorB void   )  [inline]
 

Définition à la ligne 108 du fichier ExManagerFog.h.

Références m_FogColor.

Référencé par IncFogColorB().

00108 {return m_FogColor[2];}

float ExManagerFog::GetFogColorG void   )  [inline]
 

Définition à la ligne 105 du fichier ExManagerFog.h.

Références m_FogColor.

Référencé par IncFogColorG().

00105 {return m_FogColor[1];}

float ExManagerFog::GetFogColorR void   )  [inline]
 

Définition à la ligne 102 du fichier ExManagerFog.h.

Références m_FogColor.

Référencé par IncFogColorR().

00102 {return m_FogColor[0];}

float ExManagerFog::GetStarPoint void   )  [inline]
 

Définition à la ligne 115 du fichier ExManagerFog.h.

Références m_StartPoint.

Référencé par IncStartPoint().

00115 {return m_StartPoint;}

bool ExManagerFog::GetState void   )  [inline]
 

Définition à la ligne 98 du fichier ExManagerFog.h.

Références m_State.

00098 {return m_State;}

bool ExManager::GetStatus void   )  [inline, inherited]
 

Définition à la ligne 85 du fichier ExManager.h.

Références ExManager::m_Status.

Référencé par ExManagerInterface::Draw(), ExManagerConsole::Draw(), et ExManagerOutput::DrawScene().

00085 {return m_Status;}

void ExManagerFog::IncDensity float  inc  ) 
 

Définition à la ligne 309 du fichier ExManagerFog.cpp.

Références GetDensity(), Guard, IncDensity(), SetDensity(), et UnGuard.

Référencé par IncDensity().

00310 {
00311 Guard(ExManagerFog::IncDensity(float inc))
00312         SetDensity(GetDensity()+inc);
00313 UnGuard
00314 }

void ExManagerFog::IncEndPoint float  inc  ) 
 

Définition à la ligne 294 du fichier ExManagerFog.cpp.

Références GetEndPoint(), Guard, IncEndPoint(), SetEndPoint(), et UnGuard.

Référencé par IncEndPoint().

00295 {
00296 Guard(ExManagerFog::IncEndPoint(float inc))
00297         SetEndPoint(GetEndPoint()+inc);
00298 UnGuard
00299 }

void ExManagerFog::IncFogColorA float  inc  ) 
 

Définition à la ligne 264 du fichier ExManagerFog.cpp.

Références GetFogColorA(), Guard, IncFogColorA(), SetFogColorA(), et UnGuard.

Référencé par IncFogColorA().

00265 {
00266 Guard(ExManagerFog::IncFogColorA(float inc))
00267         SetFogColorA(GetFogColorA()+inc);
00268 UnGuard
00269 }

void ExManagerFog::IncFogColorB float  inc  ) 
 

Définition à la ligne 257 du fichier ExManagerFog.cpp.

Références GetFogColorB(), Guard, IncFogColorB(), SetFogColorB(), et UnGuard.

Référencé par IncFogColorB().

00258 {
00259 Guard(ExManagerFog::IncFogColorB(float inc))
00260         SetFogColorB(GetFogColorB()+inc);
00261 UnGuard
00262 }

void ExManagerFog::IncFogColorG float  inc  ) 
 

Définition à la ligne 250 du fichier ExManagerFog.cpp.

Références GetFogColorG(), Guard, IncFogColorG(), SetFogColorG(), et UnGuard.

Référencé par IncFogColorG().

00251 {
00252 Guard(ExManagerFog::IncFogColorG(float inc))
00253         SetFogColorG(GetFogColorG()+inc);
00254 UnGuard
00255 }

void ExManagerFog::IncFogColorR float  inc  ) 
 

Définition à la ligne 243 du fichier ExManagerFog.cpp.

Références GetFogColorR(), Guard, IncFogColorR(), SetFogColorR(), et UnGuard.

Référencé par IncFogColorR().

00244 {
00245 Guard(ExManagerFog::IncFogColorR(float inc))
00246         SetFogColorR(GetFogColorR()+inc);
00247 UnGuard
00248 }

void ExManagerFog::IncStartPoint float  inc  ) 
 

Définition à la ligne 279 du fichier ExManagerFog.cpp.

Références GetStarPoint(), Guard, IncStartPoint(), SetStartPoint(), et UnGuard.

Référencé par IncStartPoint().

00280 {
00281 Guard(ExManagerFog::IncStartPoint(float inc))
00282         SetStartPoint(GetStarPoint()+inc);
00283 UnGuard
00284 }

void ExManagerFog::Init void   )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 56 du fichier ExManagerFog.cpp.

Références ExManager::Consol, glFogCoordfEXT, Guard, Init(), et UnGuard.

Référencé par Init(), et PreInitManager().

00057 {
00058 Guard(ExManagerFog::Init(void))
00059         glFogCoordfEXT = NULL;
00060 
00061         char *blah = (char *) glGetString(GL_EXTENSIONS);
00062         //--------------------------------
00063         //VOLUMETRIC FOG EXTENSION
00064         //--------------------------------
00065         if (strstr( (const char *)blah, "GL_EXT_fog_coord" )) 
00066         { 
00067                 glFogCoordfEXT = (PFNGLFOGCOORDFEXTPROC) wglGetProcAddress("glFogCoordfEXT");
00068                 *Consol<<"ExManagerFog::glFogCoordfEXT found and enable"<<std::endl;
00069         }else
00070         {
00071                 *Consol<<"ExManagerFog::OpenGl glFogCoordfEXT extension missing"<<std::endl; 
00072         }
00073 UnGuard
00074 }

ExCAction ExManagerFog::InputAction ExCAction  Action  )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 348 du fichier ExManagerFog.cpp.

Références ExManager::Consol, DISABEL_FOG, DisableFog(), ENABLE_FOG, EnableFog(), Guard, InputAction(), ExCAction::m_Action, ExCAction::m_NextAction, ExCAction::m_Param, NOTHING, SET_FOG_ALGO_EXP, SET_FOG_ALGO_EXP2, SET_FOG_ALGO_LINEAR, SET_FOG_COLOR_B, SET_FOG_COLOR_G, SET_FOG_COLOR_R, SET_FOG_DENSITY, SET_FOG_END_POINT, SET_FOG_START_POINT, SetAlgo(), SetDensity(), SetEndPoint(), SetFogColorB(), SetFogColorG(), SetFogColorR(), SetStartPoint(), et UnGuard.

Référencé par InputAction(), et ExManagerCommand::ProcesExCAction().

00349 {
00350 Guard(ExCAction ExManagerFog::InputAction(ExCAction Action))
00351         switch(Action.m_Action)
00352         {
00353         case ENABLE_FOG:EnableFog();break;
00354         case DISABEL_FOG:DisableFog();break;
00355         case SET_FOG_ALGO_LINEAR:SetAlgo(GL_LINEAR);break;
00356         case SET_FOG_ALGO_EXP:SetAlgo(GL_EXP);break;
00357         case SET_FOG_ALGO_EXP2:SetAlgo(GL_LINEAR);break;
00358 
00359         case SET_FOG_COLOR_R:
00360                 try
00361                 {
00362                         SetFogColorR(atof(Action.m_Param.data()));
00363                 }catch(...)
00364                 {
00365                         *Consol<<"Enter a float value"<<std::endl;
00366                 }
00367                 break;
00368 
00369         case SET_FOG_COLOR_G:
00370                 try
00371                 {
00372                         SetFogColorG(atof(Action.m_Param.data()));
00373                 }catch(...)
00374                 {
00375                         *Consol<<"Enter a float value"<<std::endl;
00376                 }
00377                 break;
00378                 
00379         case SET_FOG_COLOR_B:
00380                 try
00381                 {
00382                         SetFogColorB(atof(Action.m_Param.data()));
00383                 }catch(...)
00384                 {
00385                         *Consol<<"Enter a float value"<<std::endl;
00386                 }
00387                 break;
00388                                 
00389         case SET_FOG_START_POINT:
00390                 try
00391                 {
00392                         SetStartPoint(atof(Action.m_Param.data()));
00393                 }catch(...)
00394                 {
00395                         *Consol<<"Enter a float value"<<std::endl;
00396                 }
00397                 break;
00398                 
00399         case SET_FOG_END_POINT:
00400                 try
00401                 {
00402                         SetEndPoint(atof(Action.m_Param.data()));
00403                 }catch(...)
00404                 {
00405                         *Consol<<"Enter a float value"<<std::endl;
00406                 }
00407                 break;
00408 
00409         case SET_FOG_DENSITY:
00410                 try
00411                 {
00412                         SetDensity(atof(Action.m_Param.data()));
00413                 }catch(...)
00414                 {
00415                         *Consol<<"Enter a float value"<<std::endl;
00416                 }
00417                 break;
00418     
00419         default:
00420                 *Consol<<"Can not file action in FOG_ACTION_MAP"<<std::endl;
00421                 break;
00422         }       
00423 
00424         if(Action.m_NextAction){return *Action.m_NextAction;}
00425         else{return NOTHING;}
00426 UnGuard
00427 }

ExCAction ExManagerFog::InputCommand ExCCommand  Command  )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 341 du fichier ExManagerFog.cpp.

Références Guard, InputCommand(), NOTHING, et UnGuard.

Référencé par InputCommand().

00342 {
00343 Guard(ExCAction ExManagerFog::InputCommand(ExCCommand Command))
00344         return NOTHING;
00345 UnGuard
00346 }

void ExManager::Reload void   )  [virtual, inherited]
 

Redéfinie dans ExManagerCollision, ExManagerAnimation, ExManagerEntity, ExManagerModel, ExManagerObject< TypeA >, ExManagerTexture, ExManagerObject< ExCAnimation >, ExManagerObject< ExCModel * >, ExManagerObject< ExCWindow >, ExManagerObject< ExCVertexProgram >, ExManagerObject< ExCLight >, ExManagerObject< ExCLoadingAnimation >, ExManagerObject< ExCInterface >, ExManagerObject< ExCSound >, ExManagerObject< ExCCamera * >, ExManagerObject< ExCFont >, ExManagerObject< ExCGizmo >, ExManagerObject< ExCMesh * >, ExManagerObject< ExCTexture >, ExManagerObject< ExCEntity * >, ExManagerObject< ExCSystemeParticule >, et ExManagerObject< ExCSpirit >.

Définition à la ligne 33 du fichier ExManager.cpp.

Référencé par ExManagerCommand::ProcesExCAction().

00034 {}

void ExManagerFog::Reset void   )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 76 du fichier ExManagerFog.cpp.

Références DisableFog(), Guard, m_State, Reset(), SetAlgo(), SetDensity(), SetEndPoint(), SetFogColor(), SetStartPoint(), et UnGuard.

Référencé par ExManagerFog(), ExManagerCommand::ProcesExCAction(), et Reset().

00077 {
00078 Guard(ExManagerFog::Reset(void))
00079         SetAlgo(GL_LINEAR);
00080         SetFogColor(0.8f,0.8f,0.8f,1.0f);
00081         SetStartPoint(100.0f);
00082         SetEndPoint(300.0f);
00083         SetDensity(0.50);
00084         m_State=false;
00085         DisableFog();
00086 UnGuard
00087 }

void ExManagerFog::SetAlgo GLenum  algo  ) 
 

Définition à la ligne 316 du fichier ExManagerFog.cpp.

Références Guard, m_FogAlgo, SetAlgo(), et UnGuard.

Référencé par InputAction(), Reset(), et SetAlgo().

00317 {
00318 Guard(ExManagerFog::SetAlgo(GLenum algo))
00319         switch(algo)
00320         {
00321                 case GL_LINEAR:
00322                         m_FogAlgo=GL_LINEAR;
00323                         glFogi(GL_FOG_MODE,GL_LINEAR);
00324                         break;
00325                 case GL_EXP:
00326                         m_FogAlgo=GL_EXP;
00327                         glFogi(GL_FOG_MODE,GL_EXP);
00328                         break;
00329                 case GL_EXP2:
00330                         m_FogAlgo=GL_EXP2;
00331                         glFogi(GL_FOG_MODE,GL_EXP2);
00332                         break;
00333                 default :
00334                         m_FogAlgo=GL_LINEAR;
00335                         glFogi(GL_FOG_MODE,GL_LINEAR);
00336                         break;
00337         }
00338 UnGuard
00339 }

void ExManager::SetAskForCommand bool  status  )  [inline, inherited]
 

Définition à la ligne 87 du fichier ExManager.h.

Références ExManager::m_AskForCommand.

Référencé par ExManagerConsole::ExManagerConsole(), ExManagerModel::ExManagerModel(), ExManagerObjectWindow::Init(), ExManagerNetwork::Init(), ExManagerConsole::InputAction(), ExManagerNetwork::InputCommand(), ExManagerLoad::LoadSetOfFile(), et ExManagerNetwork::Say().

00087 {m_AskForCommand=status;} 

void ExManager::SetAskForExclusifCommand bool  status  )  [inline, inherited]
 

Définition à la ligne 88 du fichier ExManager.h.

Références ExManager::m_Exclusif.

Référencé par ExManagerConsole::ExManagerConsole(), ExManagerModel::ExManagerModel(), ExManagerObjectWindow::Init(), ExManagerNetwork::Init(), ExManagerConsole::InputAction(), ExManagerNetwork::InputCommand(), et ExManagerNetwork::Say().

00088 {m_Exclusif=status;}

void ExManagerFog::SetDensity float  P  ) 
 

Définition à la ligne 301 du fichier ExManagerFog.cpp.

Références Guard, m_Density, SetDensity(), et UnGuard.

Référencé par IncDensity(), InputAction(), Reset(), et SetDensity().

00302 {
00303 Guard(ExManagerFog::SetDensity(float P))
00304         m_Density=P;
00305         glFogf(GL_FOG_DENSITY,m_Density);
00306 UnGuard
00307 }

void ExManagerFog::SetEndPoint float  P  ) 
 

Définition à la ligne 286 du fichier ExManagerFog.cpp.

Références Guard, m_EndPoint, SetEndPoint(), et UnGuard.

Référencé par IncEndPoint(), InputAction(), Reset(), et SetEndPoint().

00287 {
00288 Guard(ExManagerFog::SetEndPoint(float P))
00289         m_EndPoint=P;
00290         glFogf(GL_FOG_END,m_EndPoint);
00291 UnGuard
00292 }

void ExManager::SetFlux std::ostrstream *  consol,
ExCFluxAction action
[inherited]
 

Définition à la ligne 35 du fichier ExManager.cpp.

Références ExManager::Consol, et ExManager::FluxAction.

Référencé par SetManagerLink().

00036 {
00037         Consol=consol;
00038         FluxAction=action;
00039 }

void ExManagerFog::SetFogColor float  R,
float  G,
float  B,
float  A
 

Définition à la ligne 193 du fichier ExManagerFog.cpp.

Références A, B, Guard, SetFogColor(), SetFogColorA(), SetFogColorB(), SetFogColorG(), SetFogColorR(), et UnGuard.

Référencé par Reset(), et SetFogColor().

00194 {
00195 Guard(ExManagerFog::SetFogColor(float R,float G,float B,float A))
00196         SetFogColorR(R);
00197         SetFogColorG(G);
00198         SetFogColorB(B);
00199         SetFogColorA(A);
00200 UnGuard
00201 }

void ExManagerFog::SetFogColorA float  A  ) 
 

Définition à la ligne 233 du fichier ExManagerFog.cpp.

Références A, Guard, m_FogColor, SetFogColorA(), et UnGuard.

Référencé par IncFogColorA(), SetFogColor(), et SetFogColorA().

00234 {
00235 Guard(ExManagerFog::SetFogColorA(float A))
00236         if(A>1.0f)A=1.0f;
00237         if(A<0.0f)A=0.0f;
00238         m_FogColor[3]=A;
00239         glFogfv(GL_FOG_COLOR,m_FogColor);
00240 UnGuard
00241 }

void ExManagerFog::SetFogColorB float  B  ) 
 

Définition à la ligne 223 du fichier ExManagerFog.cpp.

Références B, Guard, m_FogColor, SetFogColorB(), et UnGuard.

Référencé par IncFogColorB(), InputAction(), SetFogColor(), et SetFogColorB().

00224 {
00225 Guard(ExManagerFog::SetFogColorB(float B))
00226         if(B>1.0f)B=1.0f;
00227         if(B<0.0f)B=0.0f;
00228         m_FogColor[2]=B;
00229         glFogfv(GL_FOG_COLOR,m_FogColor);
00230 UnGuard
00231 }

void ExManagerFog::SetFogColorG float  G  ) 
 

Définition à la ligne 213 du fichier ExManagerFog.cpp.

Références Guard, m_FogColor, SetFogColorG(), et UnGuard.

Référencé par IncFogColorG(), InputAction(), SetFogColor(), et SetFogColorG().

00214 {
00215 Guard(ExManagerFog::SetFogColorG(float G))
00216         if(G>1.0f)G=1.0f;
00217         if(G<0.0f)G=0.0f;
00218         m_FogColor[1]=G;
00219         glFogfv(GL_FOG_COLOR,m_FogColor);
00220 UnGuard
00221 }

void ExManagerFog::SetFogColorR float  R  )  [inline]
 

Définition à la ligne 203 du fichier ExManagerFog.cpp.

Références Guard, m_FogColor, SetFogColorR(), et UnGuard.

Référencé par IncFogColorR(), InputAction(), SetFogColor(), et SetFogColorR().

00204 {
00205 Guard(ExManagerFog::SetFogColorR(float R))
00206         if(R>1.0f)R=1.0f;
00207         if(R<0.0f)R=0.0f;
00208         m_FogColor[0]=R;
00209         glFogfv(GL_FOG_COLOR,m_FogColor);
00210 UnGuard
00211 }

void ExManagerFog::SetStartPoint float  P  ) 
 

Définition à la ligne 271 du fichier ExManagerFog.cpp.

Références Guard, m_StartPoint, SetStartPoint(), et UnGuard.

Référencé par IncStartPoint(), InputAction(), Reset(), et SetStartPoint().

00272 {
00273 Guard(ExManagerFog::SetStartPoint(float P))
00274         m_StartPoint=P;
00275         glFogf(GL_FOG_START,m_StartPoint);
00276 UnGuard
00277 }

void ExManager::SetStatus bool  status  )  [inline, inherited]
 

Définition à la ligne 86 du fichier ExManager.h.

Références ExManager::m_Status.

Référencé par ExManagerConsole::Draw(), ExManagerConsole::ExManagerConsole(), ExManagerObjectWindow::Init(), ExManagerInterface::Init(), ExManagerConsole::InputAction(), ExManagerLoad::LoadSetOfFile(), et ExManagerConsole::SetConsoleState().

00086 {m_Status=status;}

void ExManagerFog::SetVolumetricFogCoord GLfloat  Value  ) 
 

Définition à la ligne 135 du fichier ExManagerFog.cpp.

Références glFogCoordfEXT, Guard, SetVolumetricFogCoord(), et UnGuard.

Référencé par ExCHeightMap::RenderHeightMap(), et SetVolumetricFogCoord().

00136 {
00137 Guard(ExManagerFog::SetVolumetricFogCoord(GLfloat Value))
00138         //stay to Check if extension ok....
00139         glFogCoordfEXT(Value);  
00140 UnGuard
00141 }


Documentation des données imbriquées

std::ostrstream* ExManager::Consol [inherited]
 

Définition à la ligne 73 du fichier ExManager.h.

Référencé par ExManagerObject< TypeA >::Add(), ExManagerConsole::AddStringAction(), ExManagerConsole::ApplyBuffCommand(), ExManagerInputGLUT::CheckInput(), ExManagerSound::DisplayAviableInput(), ExManagerInputGLUT::DisplayAviableInput(), ExManagerLoad::DisplayFileType(), ExManagerLoad::GetFileType(), ExManagerVertexArrays::Init(), ExManagerTexture::Init(), ExManagerSound::Init(), Init(), ExManagerSound::InputAction(), ExManagerPVS::InputAction(), ExManagerParticuleSystem::InputAction(), ExManagerModel::InputAction(), ExManagerMesh::InputAction(), ExManagerMap::InputAction(), ExManagerLoad::InputAction(), ExManagerInterface::InputAction(), InputAction(), ExManagerEntity::InputAction(), ExManagerConsole::InputAction(), ExManagerCommand::InputAction(), ExManagerCamera::InputAction(), ExManagerAnimation::InputAction(), ExManagerObject< TypeA >::List(), ExManagerModel::List(), ExManagerId::List(), ExManagerConsole::ListConsoleCommand(), ExManagerTexture::Load(), ExManagerParticuleSystem::Load(), ExManagerModel::Load(), ExManagerInterface::Load(), ExManagerTexture::LoadCubeMap(), ExManagerLoad::LoadSetOfFile(), ExManagerSound::LoadSound(), ExManagerSound::PauseSound(), ExManagerSound::PlaySound(), ExManagerCommand::ProcesExCAction(), ExManagerId::RecordObject(), ExManager::SetFlux(), ExManagerSound::SetRepeatSound(), ExManagerSound::StopSound(), ExManagerConsole::UpdateConsolBuffer(), et ExManagerConsole::Write().

ExCFluxAction* ExManager::FluxAction [inherited]
 

Définition à la ligne 74 du fichier ExManager.h.

Référencé par ExManagerWindow::Apply(), ExManagerCommand::ApplyAction(), ExManagerCommand::LoadExecFile(), ExManagerId::RecordObject(), ExManager::SetFlux(), et ExManagerSpecialEffect::Specialeffect().

PFNGLFOGCOORDFEXTPROC ExManagerFog::glFogCoordfEXT [private]
 

Définition à la ligne 77 du fichier ExManagerFog.h.

Référencé par Draw(), Init(), et SetVolumetricFogCoord().

bool ExManager::m_AskForCommand [protected, inherited]
 

Définition à la ligne 70 du fichier ExManager.h.

Référencé par ExManager::AskForCommand(), ExManagerConsole::ExManagerConsole(), et ExManager::SetAskForCommand().

GLfloat ExManagerFog::m_Density [private]
 

Définition à la ligne 73 du fichier ExManagerFog.h.

Référencé par GetDensity(), et SetDensity().

GLfloat ExManagerFog::m_EndPoint [private]
 

Définition à la ligne 72 du fichier ExManagerFog.h.

Référencé par GetEndPoint(), et SetEndPoint().

bool ExManager::m_Exclusif [protected, inherited]
 

Définition à la ligne 71 du fichier ExManager.h.

Référencé par ExManager::AskForExclusifCommand(), et ExManager::SetAskForExclusifCommand().

bool ExManagerFog::m_flag = false [static, private]
 

Définition à la ligne 26 du fichier ExManagerFog.cpp.

Référencé par CreateSingleton().

GLenum ExManagerFog::m_FogAlgo [private]
 

Définition à la ligne 74 du fichier ExManagerFog.h.

Référencé par GetAlgo(), et SetAlgo().

GLfloat ExManagerFog::m_FogColor[4] [private]
 

Définition à la ligne 70 du fichier ExManagerFog.h.

Référencé par GetFogColorA(), GetFogColorB(), GetFogColorG(), GetFogColorR(), SetFogColorA(), SetFogColorB(), SetFogColorG(), et SetFogColorR().

ExManagerFog * ExManagerFog::m_instance = NULL [static, private]
 

Définition à la ligne 27 du fichier ExManagerFog.cpp.

Référencé par CreateSingleton().

GLfloat ExManagerFog::m_StartPoint [private]
 

Définition à la ligne 71 du fichier ExManagerFog.h.

Référencé par GetStarPoint(), et SetStartPoint().

bool ExManagerFog::m_State [private]
 

Définition à la ligne 75 du fichier ExManagerFog.h.

Référencé par DisableFog(), EnableFog(), GetState(), et Reset().

bool ExManager::m_Status [protected, inherited]
 

Définition à la ligne 69 du fichier ExManager.h.

Référencé par ExManager::GetStatus(), et ExManager::SetStatus().


La documentation associée à cette classe a été générée à partir des fichiers suivants :
Généré le Tue Oct 28 12:44:02 2003 pour ExNihilo par doxygen 1.3.4