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 ExCModelMD2

#include <ExCModelMD2.h>

Graphe d'héritage de la classe ExCModelMD2

ExCModelMD ExCModel ExCObject3D ExCObject

Membres publics

 ExCModelMD2 (void)
 ~ExCModelMD2 (void)
void Draw (void)
bool Load (std::string FileName)
void StartAction (std::string Action)
void StopAction (std::string Action)
void Process (std::string Action)
void ProcessAllAction (void)
ExCAction InputAction (ExCAction Action)
bool IsAction (std::string Action)
void ShowInfo (void)
void NextFrame (void)
void PreviousFrame (void)
void SetCurrentFrame (int frame)
int GetCurrentFrame (void)
void SetInterpolationPourcentage (float inter)
float GetInterpolationPourcentage (void)
void SetManagerTexture (ExManagerTexture *Texture)
virtual void StopRun (void)
virtual void StartRun (void)
virtual void StopAction (void)
void Forward (void)
ExCGizmoGetCollisionGizmo (void)
void IncreaseCollisionCouter (void)
void DeCreaseCollisionCouter (void)
void ResetCollisionCouter (void)
virtual void CallAllList (void)
void SetRenderMode (int mode)
void SetCurrentState (bool state)
void SetShowInfoState (bool state)
bool GetShowInfoState (void)
void SetAngleX (float Angle)
void SetAngleY (float Angle)
void SetAngleZ (float Angle)
float GetAngleX (void)
float GetAngleY (void)
float GetAngleZ (void)
void SetAcceleration (ExCVec3D Acceleration)
void SetAcceleration (float x, float y, float z)
ExCVec3D GetAcceleration (void)
void SetVelocity (ExCVec3D Velocity)
void SetVelocity (float x, float y, float z)
ExCVec3D GetVelocity (void)
void SetGravity (ExCVec3D Gravity)
void SetGravity (float x, float y, float z)
ExCVec3D GetGravity (void)
void SetPosition (ExCVec3D Position)
void SetPosition (float x, float y, float z)
ExCVec3D GetPosition (void)
void SetTarget (ExCVec3D Target)
void SetTarget (float x, float y, float z)
ExCVec3D GetTarget (void)
void SetOldPosition (ExCVec3D OldPosition)
void SetOldPosition (float x, float y, float z)
ExCVec3D GetOldPosition (void)
void SetOldTarget (ExCVec3D OldTarget)
void SetOldTarget (float x, float y, float z)
ExCVec3D GetOldTarget (void)
void Rotate (float angleX, float angleY, float angleZ)
void Rotate (void)
void SetVisibleState (bool state)
bool GetVisibleState (void)
void SetFlux (std::ostrstream *consol, ExCFluxAction *action)
virtual bool LoadFile (std::string FileName)
void SetIdName (ExNihilo::IdName idname)
ExNihilo::ExId GetId (void)
std::string GetName (void)
std::string GetFileName (void)
std::string GetType (void)
void SetId (ExNihilo::ExId Id)
void SetName (std::string Name)
void SetFileName (std::string FileName)
void SetType (std::string Type)

Attributs Publics

ExCGizmoSphere m_CollisionSphere
bool m_AlwaysDraw
ExCVec3D m_Position
ExCVec3D m_OldPosition
ExCVec3D m_Target
ExCVec3D m_OldTarget
ExCVec3D m_Angle
int m_speed
float m_SphereRadius
bool m_Visible
std::ostrstream * Consol
ExCFluxActionFluxAction

Membres protégés

void BuildSphere (void)

Attributs Protégés

int m_magic
int m_version
int m_skinWidth
int m_skinHeight
int m_frameSize
int m_numSkins
int m_numVertices
int m_numTexCoords
int m_numTriangles
int m_numGlCommands
int m_offsetSkins
int m_offsetTexCoords
int m_offsetTriangles
int m_offsetFrames
int m_offsetGlCommands
int m_offsetEnd
float * TabVertices
float * TabTextures
int count
std::string m_LastAction
bool m_ShowCollisionSphere
double m_LastTime
std::vector< std::string > m_VecSkin
std::vector< std::pair< ExCVec3D,
ExCVec3D > > 
m_VecTriangle
std::vector< ExCVec3Dm_VecVertex
std::string m_Skin
std::vector< std::string > m_VecAction
std::vector< std::string
>::iterator 
m_IVecAction
ExManagerTextureManagerTexture
int m_CurrentFrames
int m_NextFrame
int m_numFrames
float m_InterpolationPourcentage
bool m_Transition
float m_Interpolation
int m_KeyFrameStartAction
int m_KeyFrameStopAction
std::string m_CurrentAction
ExCGizmom_CollisionGizmo
int m_CollisionCounter
int m_RenderMode
ExCVec3D m_Up
ExCVec3D m_Velocity
ExCVec3D m_Gravity
ExCVec3D m_Acceleration
double m_RefreshTime
double m_Life
double m_StartingLife
float m_Size
float m_Mass
bool m_ShowInfo
bool m_CurrentObject
ExNihilo::ExId m_ObjectId
std::string m_ObjectName
std::string m_ObjectFileName
std::string m_ObjectType

Documentation des contructeurs et destructeurs

ExCModelMD2::ExCModelMD2 void   ) 
 

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

Références count, ExCModel::ExCModel(), ExCModelMD2(), Guard, ExCModel::m_CollisionCounter, ExCModel::m_CollisionGizmo, ExCModel::m_CurrentFrames, ExCModel::m_Interpolation, ExCModel::m_InterpolationPourcentage, ExCModel::m_NextFrame, m_ShowCollisionSphere, ExCObject3D::m_speed, ExCObject3D::m_SphereRadius, ExCModel::m_Transition, ExCObject3D::m_Velocity, ExCObject::SetName(), ExCObject::SetType(), ExCVec3D::SetValue(), ExCObject3D::SetVisibleState(), StartAction(), et UnGuard.

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

00027 {
00028 Guard(ExCModelMD2::ExCModelMD2(void))
00029         ExCModel::ExCModel();
00030         SetName("ExCModelMD2");
00031         SetType(typeid(this).name());
00032         m_CurrentFrames=2;
00033         m_NextFrame=3;
00034         m_InterpolationPourcentage=0.1f;
00035         m_Interpolation=m_InterpolationPourcentage;
00036         m_Transition=false;
00037         StartAction("IDLE");
00038         m_speed=10;
00039         count=0;
00040         m_SphereRadius=9;
00041         m_ShowCollisionSphere=false;
00042         //m_Gravity.SetValue(0.0f,-9.81f,0.0f);
00043         m_Velocity.SetValue(0.0f,0.0f,0.0f);
00044         m_CollisionGizmo= new ExCGizmoSphere;
00045         m_CollisionGizmo->SetVisibleState(false);
00046         m_CollisionCounter=0;
00047 UnGuard
00048 }

ExCModelMD2::~ExCModelMD2 void   ) 
 

Définition à la ligne 67 du fichier ExCModelMD2.cpp.

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

00068 {
00069 Guard(ExCModelMD2::~ExCModelMD2(void))
00070 UnGuard
00071 }


Documentation des méthodes

void ExCModelMD2::BuildSphere void   )  [protected]
 

Définition à la ligne 766 du fichier ExCModelMD2.cpp.

Références BuildSphere(), Guard, m_CollisionSphere, ExCGizmoSphere::m_Radius, ExCObject3D::m_SphereRadius, et UnGuard.

Référencé par BuildSphere(), et Load().

00767 {
00768 Guard(void ExCModelMD2::BuildSphere(void))
00769         //look for sphere radisu
00770         m_CollisionSphere.m_Radius=m_SphereRadius;
00771 UnGuard
00772 }

virtual void ExCModel::CallAllList void   )  [inline, virtual, inherited]
 

Redéfinie dans ExCModel3DS, et ExCModel3DS.

Définition à la ligne 137 du fichier ExCModel.h.

00137 {};

void ExCModel::DeCreaseCollisionCouter void   )  [inline, inherited]
 

Définition à la ligne 135 du fichier ExCModel.h.

Références ExCModel::m_CollisionCounter.

00135 {m_CollisionCounter--;}

void ExCModelMD2::Draw void   )  [virtual]
 

Redéfinie à partir de ExCModel.

Définition à la ligne 358 du fichier ExCModelMD2.cpp.

Références ExCFrustum::CalculateFrustum(), ExCGizmo::Draw(), ExCModel::Draw(), Draw(), ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), Guard, ExCModel::m_CollisionGizmo, m_CollisionSphere, ExCModel::m_CurrentFrames, ExCModel::m_Interpolation, ExCModel::m_InterpolationPourcentage, ExCModel::m_KeyFrameStartAction, ExCModel::m_KeyFrameStopAction, m_LastTime, ExCModel::m_NextFrame, m_numTriangles, m_numVertices, ExCObject3D::m_OldPosition, ExCObject3D::m_Position, ExCGizmoSphere::m_Radius, m_Skin, ExCObject3D::m_speed, ExCModel::m_Transition, m_VecTriangle, m_VecVertex, ExCObject3D::m_Visible, ExCModel::ManagerTexture, ProcessAllAction(), ExManagerTexture::ResetMultitexture(), ExCObject3D::SetPosition(), ExManagerTexture::SetTexture(), ExCVec3D::SetX(), ExCVec3D::SetY(), ExCVec3D::SetZ(), ExCFrustum::SphereInFrustum(), TabTextures, TabVertices, et UnGuard.

Référencé par Draw().

00359 {
00360 Guard(void ExCModelMD2::Draw(void))
00361         double CurrentTime;
00362         if(!m_Visible)return;
00363         //ExCModel::Draw();
00364         ExCVec3D VecAB,VecBC,VecCA;
00365         int FrameToDraw,FrameToInterpol;
00366         CurrentTime=glutGet(GLUT_ELAPSED_TIME);
00367         if(CurrentTime>m_LastTime+m_speed)
00368         {
00369         
00370                 if(m_Transition)
00371                 {
00372                         m_Interpolation+=m_InterpolationPourcentage;
00373                         if(m_Interpolation>1)//check if we go to next frame
00374                         {
00375                                 m_Interpolation=m_InterpolationPourcentage;
00376                                 m_CurrentFrames++;
00377                                 m_NextFrame=m_CurrentFrames+1;
00378                                 if(m_NextFrame>m_KeyFrameStopAction)m_NextFrame=m_KeyFrameStartAction;
00379                                 if(m_CurrentFrames>m_KeyFrameStopAction)
00380                                 {
00381                                         m_CurrentFrames=m_KeyFrameStartAction;
00382                                         m_NextFrame=m_CurrentFrames+1;
00383                                 }
00384                         }
00385                 }
00386                 m_LastTime=CurrentTime;
00387         }
00388         FrameToDraw=m_numVertices*m_CurrentFrames;
00389         FrameToInterpol=m_numVertices*m_NextFrame;
00390         ProcessAllAction();
00391 //check if camera can see object
00392         ExCFrustum Frustrum;
00393         Frustrum.CalculateFrustum();
00394         if(!Frustrum.SphereInFrustum(m_Position.GetX(),m_Position.GetY(),m_Position.GetZ(),m_CollisionSphere.m_Radius))
00395         {
00396                 return;
00397         }
00398 
00399         TabVertices= new float[m_numTriangles*9];
00400         for(int i = 0; i < m_numTriangles; i++)
00401         {
00402                 //----------------
00403                 //Vertex coord
00404                 //----------------
00405                 VecAB.SetX(m_VecVertex.at(m_VecTriangle.at(i).first.GetX()+FrameToDraw).GetX());
00406                 VecAB.SetY(m_VecVertex.at(m_VecTriangle.at(i).first.GetX()+FrameToDraw).GetY());
00407                 VecAB.SetZ(m_VecVertex.at(m_VecTriangle.at(i).first.GetX()+FrameToDraw).GetZ());                
00408 
00409                 VecBC.SetX(m_VecVertex.at(m_VecTriangle.at(i).first.GetY()+FrameToDraw).GetX());
00410                 VecBC.SetY(m_VecVertex.at(m_VecTriangle.at(i).first.GetY()+FrameToDraw).GetY());
00411                 VecBC.SetZ(m_VecVertex.at(m_VecTriangle.at(i).first.GetY()+FrameToDraw).GetZ());
00412 
00413                 VecCA.SetX(m_VecVertex.at(m_VecTriangle.at(i).first.GetZ()+FrameToDraw).GetX());
00414                 VecCA.SetY(m_VecVertex.at(m_VecTriangle.at(i).first.GetZ()+FrameToDraw).GetY());
00415                 VecCA.SetZ(m_VecVertex.at(m_VecTriangle.at(i).first.GetZ()+FrameToDraw).GetZ());
00416 
00417                 //--------------
00418                 //interpolation
00419                 //--------------
00420                 if(m_Transition)
00421                 {
00422                         ExCVec3D VecABN,VecBCN,VecCAN;
00423 
00424                         VecABN.SetX(m_VecVertex.at(m_VecTriangle.at(i).first.GetX()+FrameToInterpol).GetX());
00425                         VecABN.SetY(m_VecVertex.at(m_VecTriangle.at(i).first.GetX()+FrameToInterpol).GetY());
00426                         VecABN.SetZ(m_VecVertex.at(m_VecTriangle.at(i).first.GetX()+FrameToInterpol).GetZ());           
00427 
00428                         VecBCN.SetX(m_VecVertex.at(m_VecTriangle.at(i).first.GetY()+FrameToInterpol).GetX());
00429                         VecBCN.SetY(m_VecVertex.at(m_VecTriangle.at(i).first.GetY()+FrameToInterpol).GetY());
00430                         VecBCN.SetZ(m_VecVertex.at(m_VecTriangle.at(i).first.GetY()+FrameToInterpol).GetZ());
00431 
00432                         VecCAN.SetX(m_VecVertex.at(m_VecTriangle.at(i).first.GetZ()+FrameToInterpol).GetX());
00433                         VecCAN.SetY(m_VecVertex.at(m_VecTriangle.at(i).first.GetZ()+FrameToInterpol).GetY());
00434                         VecCAN.SetZ(m_VecVertex.at(m_VecTriangle.at(i).first.GetZ()+FrameToInterpol).GetZ());
00435 
00436                         VecAB=VecAB+((VecABN-VecAB)*m_Interpolation);
00437                         VecBC=VecBC+((VecBCN-VecBC)*m_Interpolation);
00438                         VecCA=VecCA+((VecCAN-VecCA)*m_Interpolation);
00439                 }
00440                 //--------------
00441                 //Build array with new vertex data
00442                 //--------------
00443                         TabVertices[0+i*9]=VecBC.GetX();
00444                         TabVertices[1+i*9]=VecBC.GetY();
00445                         TabVertices[2+i*9]=VecBC.GetZ();
00446                         TabVertices[3+i*9]=VecAB.GetX();
00447                         TabVertices[4+i*9]=VecAB.GetY();
00448                         TabVertices[5+i*9]=VecAB.GetZ();
00449                         TabVertices[6+i*9]=VecCA.GetX();
00450                         TabVertices[7+i*9]=VecCA.GetY();
00451                         TabVertices[8+i*9]=VecCA.GetZ();
00452         }
00453         //----------------------------
00454         //Apply mouvement modification 
00455         //----------------------------
00456         glPushMatrix();
00457         ExCModel::Draw();
00458         //ShowInfo();
00459         //--------------
00460         //Draw Model with array
00461         //--------------
00462         glRotatef(-90,1,0,0);
00463 
00464         //m_CollisionSphere.SetPosition(m_Position);
00465         //if(m_ShowCollisionSphere)m_CollisionSphere.Draw();
00466         m_CollisionGizmo->SetPosition(m_Position);
00467         m_CollisionGizmo->Draw();
00468 
00469         
00470         //stock in vidoe memory
00471         PFNGLBINDBUFFERARBPROC glBindBufferARB = NULL;
00472         PFNGLGENBUFFERSARBPROC glGenBuffersARB = NULL;
00473         PFNGLBUFFERDATAARBPROC glBufferDataARB = NULL;
00474 
00475         glBindBufferARB = (PFNGLBINDBUFFERARBPROC)
00476                 wglGetProcAddress("glBindBufferARB");
00477         glGenBuffersARB = (PFNGLGENBUFFERSARBPROC)
00478                 wglGetProcAddress("glGenBuffersARB");
00479         glBufferDataARB = (PFNGLBUFFERDATAARBPROC)
00480                 wglGetProcAddress("glBufferDataARB");
00481 
00482 
00483 
00484         glColor3f(1,1,1);
00485         /*      glPushMatrix();
00486                         glDisable(GL_LIGHTING);
00487                         ManagerTexture->SetTexture(0,m_Skin);
00488                         glTexCoordPointer(2,GL_FLOAT,0,TabTextures);
00489                         ManagerTexture->SetTexture(1,"Model/OgreDOT3");
00490                         glTexCoordPointer(2,GL_FLOAT,0,TabTextures);
00491                         glEnableClientState(GL_VERTEX_ARRAY);
00492                         GLuint buffer = 0;
00493                         glGenBuffersARB(1, &buffer);
00494                         glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
00495                         glBufferDataARB(GL_ARRAY_BUFFER_ARB, sizeof(TabVertices), TabVertices, GL_STATIC_DRAW_ARB);
00496                         
00497                         glVertexPointer(3,GL_FLOAT,0,TabVertices);
00498                         glDrawArrays( GL_TRIANGLES, 0, m_numTriangles*3 );
00499                         ManagerTexture->ResetMultitexture();
00500                 glPopMatrix();
00501         */
00502         glPushMatrix();
00503                 glDisable(GL_LIGHTING);
00504                 ManagerTexture->SetTexture(0,m_Skin);
00505         /*      
00506                 // RGB
00507                 glTexEnvf(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_COMBINE_EXT);
00508 
00509                 glTexEnvf(GL_TEXTURE_ENV,GL_COMBINE_RGB_EXT,GL_MODULATE);
00510                 glTexEnvf(GL_TEXTURE_ENV,GL_SOURCE0_RGB_EXT,GL_TEXTURE);
00511                 glTexEnvf(GL_TEXTURE_ENV,GL_OPERAND0_RGB_EXT,GL_SRC_COLOR);
00512                 glTexEnvf(GL_TEXTURE_ENV,GL_SOURCE1_RGB_EXT,GL_PREVIOUS_EXT);
00513                 glTexEnvf(GL_TEXTURE_ENV,GL_OPERAND1_RGB_EXT,GL_SRC_COLOR);
00514 
00515                 // alpha
00516                 glTexEnvf(GL_TEXTURE_ENV,GL_COMBINE_ALPHA_EXT,GL_REPLACE);
00517                 glTexEnvf(GL_TEXTURE_ENV,GL_SOURCE0_ALPHA_EXT,GL_TEXTURE);
00518                 glTexEnvf(GL_TEXTURE_ENV,GL_OPERAND0_ALPHA_EXT,GL_SRC_ALPHA);
00519 
00520 */
00521         //      glTexCoordPointer(2,GL_FLOAT,0,TabTextures);
00522         //      ManagerTexture->SetTexture(1,"Model/droidDOT3");
00523 /*              // RGB
00524                 glTexEnvf(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_COMBINE_EXT);
00525                 glTexEnvf(GL_TEXTURE_ENV,GL_COMBINE_RGB_EXT,GL_REPLACE);
00526                 glTexEnvf(GL_TEXTURE_ENV,GL_SOURCE0_RGB_EXT,GL_PREVIOUS_EXT);
00527                 glTexEnvf(GL_TEXTURE_ENV,GL_OPERAND0_RGB_EXT,GL_SRC_COLOR);
00528 
00529                 // alpha
00530                 glTexEnvf(GL_TEXTURE_ENV,GL_COMBINE_ALPHA_EXT,GL_ADD_SIGNED_EXT);
00531                 glTexEnvf(GL_TEXTURE_ENV,GL_SOURCE0_ALPHA_EXT,GL_TEXTURE);
00532                 glTexEnvf(GL_TEXTURE_ENV,GL_OPERAND0_ALPHA_EXT,GL_ONE_MINUS_SRC_ALPHA);
00533                 glTexEnvf(GL_TEXTURE_ENV,GL_SOURCE1_ALPHA_EXT,GL_PREVIOUS_EXT);
00534                 glTexEnvf(GL_TEXTURE_ENV,GL_OPERAND1_ALPHA_EXT,GL_SRC_ALPHA);
00535 
00536                 glEnable(GL_BLEND);
00537 
00538                 // src * srcAlpha + 0
00539                 glBlendFunc(GL_SRC_ALPHA, GL_ZERO);
00540 */
00541 
00542                 glTexCoordPointer(2,GL_FLOAT,0,TabTextures);
00543         glEnableClientState(GL_VERTEX_ARRAY);
00544                 GLuint buffer = 0;
00545                 glGenBuffersARB(1, &buffer);
00546                 glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
00547                 glBufferDataARB(GL_ARRAY_BUFFER_ARB, sizeof(TabVertices), TabVertices, GL_STATIC_DRAW_ARB);
00548 
00549                 glVertexPointer(3,GL_FLOAT,0,TabVertices);
00550                 
00551                 
00552                 glDrawArrays( GL_TRIANGLES, 0, m_numTriangles*3 );
00553 
00554         //      glDisable(GL_BLEND);
00555 
00556                 ManagerTexture->ResetMultitexture();
00557         glPopMatrix();
00558         //--------------------------------------
00559         glPopMatrix();
00560         glDisable(GL_TEXTURE_2D);
00561         m_OldPosition=m_Position;
00562         delete TabVertices;     
00563 
00564 UnGuard
00565 }

void ExCModel::Forward void   )  [inherited]
 

Définition à la ligne 39 du fichier ExCModel.cpp.

Références ExCModel::Forward(), Guard, ExCObject3D::m_Position, ExCObject3D::m_Target, et UnGuard.

Référencé par ExCModel::Forward().

00040 {
00041 Guard(void ExCModel::Forward(void))
00042         m_Position=m_Position+m_Target; 
00043 UnGuard
00044 }

ExCVec3D ExCObject3D::GetAcceleration void   )  [inline, inherited]
 

Définition à la ligne 116 du fichier ExCObject3D.h.

Références ExCObject3D::m_Acceleration.

00116 {return m_Acceleration;}

float ExCObject3D::GetAngleX void   )  [inline, inherited]
 

Définition à la ligne 110 du fichier ExCObject3D.h.

Références ExCVec3D::GetX(), et ExCObject3D::m_Angle.

Référencé par ExCCameraFirst::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw().

00110 {return m_Angle.GetX();}

float ExCObject3D::GetAngleY void   )  [inline, inherited]
 

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

Références ExCVec3D::GetY(), et ExCObject3D::m_Angle.

Référencé par ExCCameraFirst::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw().

00111 {return m_Angle.GetY();}

float ExCObject3D::GetAngleZ void   )  [inline, inherited]
 

Définition à la ligne 112 du fichier ExCObject3D.h.

Références ExCVec3D::GetZ(), et ExCObject3D::m_Angle.

Référencé par ExCCameraFirst::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw().

00112 {return m_Angle.GetZ();}

ExCGizmo* ExCModel::GetCollisionGizmo void   )  [inline, inherited]
 

Définition à la ligne 133 du fichier ExCModel.h.

Références ExCModel::m_CollisionGizmo.

Référencé par ExManagerCollision::ResolveCollision().

00133 {return m_CollisionGizmo;}

int ExCModel::GetCurrentFrame void   )  [inline, inherited]
 

Définition à la ligne 121 du fichier ExCModel.h.

Références ExCModel::m_CurrentFrames.

00121 {return m_CurrentFrames; }

std::string ExCObject::GetFileName void   )  [inline, inherited]
 

Définition à la ligne 94 du fichier ExCObject.h.

Références ExCObject::m_ObjectFileName.

Référencé par ExManagerMap::InputAction().

00094 {return m_ObjectFileName;}

ExCVec3D ExCObject3D::GetGravity void   )  [inline, inherited]
 

Définition à la ligne 124 du fichier ExCObject3D.h.

Références ExCObject3D::m_Gravity.

00124 {return m_Gravity;}

ExNihilo::ExId ExCObject::GetId void   )  [inline, inherited]
 

Définition à la ligne 92 du fichier ExCObject.h.

Références ExNihilo::ExId, et ExCObject::m_ObjectId.

Référencé par ExCSystemeParticule::CreateNewParticle(), ExManagerModel::Load(), ExManagerMesh::Load(), ExManagerId::RecordObject(), ExCObject3D::ShowInfo(), et ShowInfo().

00092 {return m_ObjectId;}

float ExCModel::GetInterpolationPourcentage void   )  [inline, inherited]
 

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

Références ExCModel::m_InterpolationPourcentage.

std::string ExCObject::GetName void   )  [inline, inherited]
 

Définition à la ligne 93 du fichier ExCObject.h.

Références ExCObject::m_ObjectName.

Référencé par ExManagerTexture::Add(), ExManagerInterface::Load(), ExManagerEntity::LoadGroupe(), ExManagerId::RecordObject(), ExManagerCollision::ResolveCollision(), ExCObject3D::ShowInfo(), et ShowInfo().

00093 {return m_ObjectName;}

ExCVec3D ExCObject3D::GetOldPosition void   )  [inline, inherited]
 

Définition à la ligne 136 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldPosition.

00136 {return m_OldPosition;}

ExCVec3D ExCObject3D::GetOldTarget void   )  [inline, inherited]
 

Définition à la ligne 140 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldTarget.

00140 {return m_OldTarget;}

ExCVec3D ExCObject3D::GetPosition void   )  [inline, inherited]
 

Définition à la ligne 128 du fichier ExCObject3D.h.

Références ExCObject3D::m_Position.

Référencé par ExCCameraFirst::Draw(), ExCCameraChase::Draw(), ExManagerEntity::LoadGroupe(), ExManagerEntity::Reload(), et ExManagerCollision::ResolveCollision().

00128 {return m_Position;}

bool ExCObject3D::GetShowInfoState void   )  [inline, inherited]
 

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

Références ExCObject3D::m_ShowInfo.

00105 {return m_ShowInfo;}

ExCVec3D ExCObject3D::GetTarget void   )  [inline, inherited]
 

Définition à la ligne 132 du fichier ExCObject3D.h.

Références ExCObject3D::m_Target.

Référencé par ExCCameraFirst::Draw(), et ExManagerCollision::ResolveCollision().

00132 {return m_Target;}

std::string ExCObject::GetType void   )  [inline, inherited]
 

Définition à la ligne 95 du fichier ExCObject.h.

Références ExCObject::m_ObjectType.

Référencé par ExManagerId::RecordObject(), et ExManagerCollision::ResolveCollision().

00095 {return m_ObjectType;}

ExCVec3D ExCObject3D::GetVelocity void   )  [inline, inherited]
 

Définition à la ligne 120 du fichier ExCObject3D.h.

Références ExCObject3D::m_Velocity.

Référencé par ExManagerCollision::ResolveCollision().

00120 {return m_Velocity;}

bool ExCObject3D::GetVisibleState void   )  [inline, inherited]
 

Définition à la ligne 146 du fichier ExCObject3D.h.

Références ExCObject3D::m_Visible.

Référencé par ExCModel3DS::InputAction().

00146 {return m_Visible;}

void ExCModel::IncreaseCollisionCouter void   )  [inline, inherited]
 

Définition à la ligne 134 du fichier ExCModel.h.

Références ExCModel::m_CollisionCounter.

Référencé par ExManagerCollision::ResolveCollision().

00134 {m_CollisionCounter++;}

ExCAction ExCModelMD2::InputAction ExCAction  Action  )  [virtual]
 

Redéfinie à partir de ExCModel.

Définition à la ligne 73 du fichier ExCModelMD2.cpp.

Références IsAction(), LOOK_DOWN, LOOK_UP, ExCObject3D::m_Acceleration, ExCAction::m_Action, ExCObject3D::m_Angle, ExCAction::m_Param, ExCObject3D::m_Position, m_ShowCollisionSphere, m_VecAction, ExCObject3D::m_Velocity, MODEL_JUMP, MODEL_SET_ACTION, MODEL_SET_ANGLE_X, MODEL_SET_ANGLE_Y, MODEL_SET_ANGLE_Z, MODEL_SET_POS_X, MODEL_SET_POS_Y, MODEL_SET_POS_Z, MODEL_SHOW_COLLISION_SPHERE, MODEL_START_MOVE_FORWARD, MODEL_START_ROTATE_X_DOWN, MODEL_START_ROTATE_X_UP, MODEL_START_ROTATE_Y_DOWN, MODEL_START_ROTATE_Y_UP, MODEL_START_ROTATE_Z_DOWN, MODEL_START_ROTATE_Z_UP, MODEL_START_STRAFE_LEFT, MODEL_START_STRAFE_RIGHT, MODEL_STOP_ALL, MODEL_STOP_MOVE_FORWARD, MODEL_STOP_ROTATE_X_DOWN, MODEL_STOP_ROTATE_X_UP, MODEL_STOP_ROTATE_Y_DOWN, MODEL_STOP_ROTATE_Y_UP, MODEL_STOP_ROTATE_Z_DOWN, MODEL_STOP_ROTATE_Z_UP, MODEL_STOP_STRAFE_LEFT, MODEL_STOP_STREFA_RIGHT, NEXT_FRAME, ExCModel::NextFrame(), NOTHING, PREVIOUS_FRAME, SET_CURENT_FRAME, ExCVec3D::SetValue(), ExCVec3D::SetX(), ExCVec3D::SetY(), ExCVec3D::SetZ(), START_ACTION, StartAction(), STOP_ACTION, ExCModel::StopAction(), TURN_LEFT, et TURN_RIGHT.

00074 {
00075         //std::cout<<"MODEL"<<Action;
00076         switch(Action.m_Action) 
00077         {
00078         case NEXT_FRAME:
00079                         NextFrame();
00080                         break;
00081                 case PREVIOUS_FRAME:
00082                         break;
00083                 case SET_CURENT_FRAME:
00084                         break;
00085                 case START_ACTION:
00086                         StartAction(Action.m_Param);
00087                         break;
00088                 case STOP_ACTION:
00089                         StopAction(Action.m_Param);
00090                         break;
00091                 case TURN_LEFT:
00092                         StartAction("TURN_LEFT");
00093                         break;
00094                 case TURN_RIGHT:
00095                         StartAction("TURN_RIGHT");
00096                 case LOOK_UP:
00097                         StartAction(Action.m_Param);
00098                         break;
00099                 case LOOK_DOWN:
00100                         StartAction(Action.m_Param);
00101                         break;
00102                 case MODEL_SET_POS_X:
00103                         m_Position.SetX(atof(Action.m_Param.data()));
00104                         break;
00105                 case MODEL_SET_POS_Y:
00106                         m_Position.SetY(atof(Action.m_Param.data()));
00107                         break;
00108                 case MODEL_SET_POS_Z:
00109                         m_Position.SetZ(atof(Action.m_Param.data()));
00110                         break;
00111                 case MODEL_SET_ANGLE_X:
00112             m_Angle.SetX(atof(Action.m_Param.data()));
00113                         break;
00114                 case MODEL_SET_ANGLE_Y:
00115                         m_Angle.SetY(atof(Action.m_Param.data()));
00116                         break;
00117                 case MODEL_SET_ANGLE_Z:
00118                         m_Angle.SetZ(atof(Action.m_Param.data()));
00119                         break;
00120                 case MODEL_START_ROTATE_Y_DOWN:
00121                         StartAction("TURN_RIGHT");
00122                         break;
00123                 case MODEL_STOP_ROTATE_Y_DOWN:
00124                         StopAction("TURN_RIGHT");
00125                         if(!IsAction("RUN")){StartAction("IDLE");}
00126                         break;
00127                 case MODEL_START_ROTATE_Y_UP:
00128                         StartAction("TURN_LEFT");
00129                         break;
00130                 case MODEL_STOP_ROTATE_Y_UP:
00131                         StopAction("TURN_LEFT");
00132                         if(!IsAction("RUN")){StartAction("IDLE");}
00133                         break;
00134                 case MODEL_START_ROTATE_Z_DOWN:
00135                         StartAction("LOOK_UP");
00136                         break;
00137                 case MODEL_STOP_ROTATE_Z_DOWN:
00138                         StopAction("LOOK_UP");
00139                         break;
00140                 case MODEL_START_ROTATE_Z_UP:
00141                         StartAction("LOOK_DOWN");
00142                         break;
00143                 case MODEL_STOP_ROTATE_Z_UP:
00144                         StopAction("LOOK_DOWN");
00145                         break;
00146                 case MODEL_START_ROTATE_X_DOWN:
00147                         StartAction("X_DOWN");
00148                         break;
00149                 case MODEL_STOP_ROTATE_X_DOWN:
00150                         StopAction("X_DOWN");
00151                         break;
00152                 case MODEL_START_ROTATE_X_UP:
00153                         StartAction("X_UP");
00154                         break;
00155                 case MODEL_STOP_ROTATE_X_UP:
00156                         StopAction("X_UP");
00157                         break;
00158                 case MODEL_START_MOVE_FORWARD:
00159                         StartAction("RUN");
00160                         m_Acceleration=m_Acceleration+0.01;
00161                         break;
00162                 case MODEL_STOP_MOVE_FORWARD:
00163                         StopAction("RUN");
00164                         StartAction("IDLE");
00165                         m_Acceleration.SetValue(0.0f,0.0f,0.0f);
00166                         m_Velocity.SetValue(0.0f,0.0f,0.0f);
00167                         break;
00168                 case MODEL_JUMP:
00169                         StartAction("JUMP");
00170                         break;
00171                 case MODEL_SET_ACTION:
00172             break;
00173                 case MODEL_STOP_ALL:
00174                         m_VecAction.clear();
00175                         m_Velocity.SetValue(0.0f,0.0f,0.0f);
00176                         m_Acceleration.SetValue(0.0f,0.0f,0.0f);
00177                         break;
00178                 case MODEL_SHOW_COLLISION_SPHERE:
00179                         if(m_ShowCollisionSphere){m_ShowCollisionSphere=false;}
00180                         else{m_ShowCollisionSphere=true;}
00181 
00182                         break;
00183                 case MODEL_START_STRAFE_LEFT:
00184                         StartAction("STRAFE_LEFT");
00185                         break;
00186                 case MODEL_STOP_STRAFE_LEFT     :
00187                         StopAction("STRAFE_LEFT");
00188                         break;
00189                 case MODEL_START_STRAFE_RIGHT:
00190                         StartAction("STRAFE_RIGHT");
00191                         break;
00192                 case MODEL_STOP_STREFA_RIGHT:
00193                         StopAction("STRAFE_RIGHT");
00194                         break;
00195         }
00196         return NOTHING;
00197 }

bool ExCModelMD2::IsAction std::string  Action  ) 
 

Définition à la ligne 272 du fichier ExCModelMD2.cpp.

Références Guard, IsAction(), m_IVecAction, m_VecAction, et UnGuard.

Référencé par InputAction(), IsAction(), et Process().

00273 {
00274 Guard(bool ExCModelMD2::IsAction(std::string Action))
00275         for(m_IVecAction= m_VecAction.begin();m_IVecAction!= m_VecAction.end();m_IVecAction++)
00276         {
00277                 if(strcmp(m_IVecAction->data(),Action.data())==0)
00278                 {
00279                         return true;
00280                 }
00281         }
00282         return false;
00283 UnGuard
00284 }

bool ExCModelMD2::Load std::string  FileName  )  [virtual]
 

Redéfinie à partir de ExCModel.

Définition à la ligne 570 du fichier ExCModelMD2.cpp.

Références BuildSphere(), ExNihilo::ExtracValueFromSring(), frame_t::fp, modelHeader_t::framesize, Guard, modelHeader_t::ident, ExManagerTexture::Load(), Load(), m_frameSize, m_magic, ExCModel::m_numFrames, m_numGlCommands, m_numSkins, m_numTexCoords, m_numTriangles, m_numVertices, m_offsetEnd, m_offsetFrames, m_offsetGlCommands, m_offsetSkins, m_offsetTexCoords, m_offsetTriangles, m_Skin, m_skinHeight, m_skinWidth, m_VecSkin, m_VecTriangle, m_VecVertex, m_version, ExCModel::ManagerTexture, mesh_t::meshIndex, modelHeader_t::numFrames, modelHeader_t::numGLcmds, modelHeader_t::numSkins, modelHeader_t::numST, modelHeader_t::numTris, modelHeader_t::numXYZ, modelHeader_t::offsetEnd, modelHeader_t::offsetFrames, modelHeader_t::offsetGLcmds, modelHeader_t::offsetSkins, modelHeader_t::offsetST, modelHeader_t::offsetTris, frame_t::scale, ExCVec3D::SetValue(), ExCVec3D::SetX(), ExCVec3D::SetY(), ExCVec3D::SetZ(), modelHeader_t::skinheight, modelHeader_t::skinwidth, TabTextures, frame_t::translate, UnGuard, framePoint_t::v, et modelHeader_t::version.

Référencé par Load().

00571 {
00572 Guard(bool ExCModelMD2::Load(std::string FileName))
00573         int i,j;
00574         FILE *filePtr;                          // file pointer
00575     int fileLen;                            // length of model file
00576     char *buffer;                           // file buffer
00577 
00578     modelHeader_t *modelHeader;             // model header
00579         frame_t *frame;                              // frame data
00580         stIndex_t *stPtr;                       // texture data
00581          mesh_t *bufIndexPtr;          // index variables
00582         m_Skin=ExNihilo::ExtracValueFromSring(FileName,"../Data/Modeles/",".md2");
00583         m_Skin="Model/"+m_Skin;
00584         
00585         ManagerTexture->Load(m_Skin);
00586         
00587         
00588 
00589     filePtr = fopen(FileName.data(), "rb");
00590     if (filePtr == NULL) 
00591         {
00592                 throw ExCExpFileNotFound();
00593                 return false;
00594         }
00595      
00596 
00597          // find length of file
00598      fseek(filePtr, 0, SEEK_END);
00599      fileLen = ftell(filePtr);
00600      fseek(filePtr, 0, SEEK_SET);
00601      
00602      // read entire file into buffer
00603      buffer = new char [fileLen+1];
00604      fread(buffer, sizeof(char), fileLen, filePtr);
00605 
00606          modelHeader = (modelHeader_t*)buffer; 
00607 
00608 /*       std::ofstream logscale;
00609          std::ofstream logfp;
00610          std::ofstream logtranslate;
00611          std::ofstream logfile;
00612          std::ofstream logHeader;
00613          std::ofstream logTextureCoord;
00614          
00615          logscale.open("logscale.txt",std::ios::out);
00616          logfp.open("logfp.txt",std::ios::out);
00617          logtranslate.open("logtranslate.txt",std::ios::out);
00618          logfile.open("logfile.txt",std::ios::out);
00619          logHeader.open("logHeader.txt",std::ios::out);
00620          logTextureCoord.open("logTextureCoord.txt",std::ios::out);
00621 */
00622 
00623         m_magic=modelHeader->ident;
00624         m_version=modelHeader->version;                                         // The version number of the file (Must be 8)
00625         m_skinWidth=modelHeader->skinwidth;                                     // The skin width in pixels
00626         m_skinHeight=modelHeader->skinheight;                           // The skin height in pixels
00627         m_frameSize=modelHeader->framesize;                                     // The size in bytes the frames are
00628         m_numSkins=modelHeader->numSkins;                                       // The number of skins associated with the model
00629         m_numVertices=modelHeader->numXYZ;                              // The number of vertices (constant for each frame)
00630         m_numTexCoords=modelHeader->numST;                      // The number of texture coordinates
00631         m_numTriangles=modelHeader->numTris;                    // The number of faces (polygons)
00632         m_numGlCommands=modelHeader->numGLcmds;                 // The number of gl commands
00633         m_numFrames=modelHeader->numFrames;                                     // The number of animation frames
00634         m_offsetSkins=modelHeader->offsetSkins;                         // The offset in the file for the skin data
00635         m_offsetTexCoords=modelHeader->offsetST;                // The offset in the file for the texture data
00636         m_offsetTriangles=modelHeader->offsetTris;              // The offset in the file for the face data
00637         m_offsetFrames=modelHeader->offsetFrames;                       // The offset in the file for the frames data
00638         m_offsetGlCommands=modelHeader->offsetGLcmds;   // The offset in the file for the gl commands data
00639         m_offsetEnd=modelHeader->offsetEnd;                                     // The end of the file offset
00640         
00641 /*      std::cout<<"This is used to identify the file: "<<m_magic<<std::endl;
00642         std::cout<<"The version number of the file (Musbe 8):"<<m_version<<std::endl;
00643         std::cout<<"The skin width in pixels:"<<m_skinWidth<<std::endl;
00644         std::cout<<"The skin heighin pixels:"<<m_skinHeight<<std::endl;
00645         std::cout<<"The size in bytes the frames are:"<<m_frameSize<<std::endl;
00646         std::cout<<"The number of skins associated with the model:"<<m_numSkins<<std::endl;
00647         std::cout<<"The number of vertices (constan for each frame):"<<m_numVertices<<std::endl;
00648         std::cout<<"The number of texture coordinates:"<<m_numTexCoords<<std::endl;
00649         std::cout<<"The number of faces (polygons):"<<m_numTriangles<<std::endl;
00650         std::cout<<"The number of gl commands:"<<m_numGlCommands<<std::endl;
00651         std::cout<<"The number of animation frames:"<<m_numFrames<<std::endl;
00652         std::cout<<"The offset in the file for the skin data:"<<m_offsetSkins<<std::endl;
00653         std::cout<<"The offset in the file for the texture data:"<<m_offsetTexCoords<<std::endl;
00654         std::cout<<"The offset in the file for the face data:"<<m_offsetTriangles<<std::endl;
00655         std::cout<<"The offset in the file for the frames data:"<<m_offsetFrames<<std::endl;
00656         std::cout<<"The offset in the file for the gl commands data:"<<m_offsetGlCommands<<std::endl;
00657         std::cout<<"The end of the file offset:"<<m_offsetEnd<<std::endl;
00658 */      
00659         //-----------------------------------------------
00660         //read all skin
00661         //-----------------------------------------------
00662         char mybuff[65];
00663         std::string BuffSkin;
00664     fseek(filePtr, m_offsetSkins, SEEK_SET);
00665         for(i = 0;i<m_numSkins;++i)
00666         {
00667                 fread(&mybuff,sizeof(char),64, filePtr);
00668                 BuffSkin=mybuff;
00669                 //std::cout<<BuffSkin<<std::endl;
00670                 m_VecSkin.push_back(BuffSkin);
00671         }
00672         //-----------------------------------------------
00673         //read vertex  data 
00674         //-----------------------------------------------
00675          ExCVec3D Vec3D;
00676          for (j = 0; j < m_numFrames; j++)
00677      {
00678           frame = (frame_t*)&buffer[m_offsetFrames+ m_frameSize * j];
00679           for (i = 0; i < m_numVertices; i++)
00680           {
00681                                 Vec3D.SetX(frame->scale[0] * frame->fp[i].v[0] + frame->translate[0]);
00682                                 Vec3D.SetY(frame->scale[1] * frame->fp[i].v[1] + frame->translate[1]);
00683                                 Vec3D.SetZ(frame->scale[2] * frame->fp[i].v[2] + frame->translate[2]);
00684                                 Vec3D=Vec3D/3;
00685                                 m_VecVertex.push_back(Vec3D);
00686 
00687         /*                      logscale<<"X:"<<frame->scale[0]<<" Y:"<<frame->scale[1]<<" Z:"<<frame->scale[2]<<std::endl;
00688                                 logfp<<"X:"<<frame->fp[i].v[0]<<" Y:"<<frame->fp[i].v[1]<<" Z:"<<frame->fp[i].v[2]<<std::endl;
00689                                 logtranslate<<"X:"<<frame->translate[0]<<" Y:"<<frame->translate[1]<<" Z:"<<frame->translate[2]<<std::endl;
00690                                 logfile<<"vec :"<<i<<" "<<Vec3D<<std::endl;*/
00691           }
00692                   //logfile<<"------------------------------------------------------------------"<<std::endl;
00693      }
00694         //-----------------------------------------------
00695         //read triangles data 
00696         //-----------------------------------------------
00697         fseek(filePtr, m_offsetTriangles, SEEK_SET);
00698         short AB,BC,CA,TAB,TBC,TCA;
00699         ExCVec3D VertexNum,TexturNum;
00700         /*std::ofstream logTri;
00701         logTri.open("logTri.txt",std::ios::out);
00702         */
00703             
00704      // point to triangle indexes in buffer
00705     bufIndexPtr = (mesh_t*)&buffer[modelHeader->offsetTris]; 
00706         // create a mesh (triangle) list
00707      for (j = 0; j < m_numFrames; j++)         
00708      {
00709           // for all triangles in each frame
00710           for(i = 0; i < m_numTriangles; i++)
00711           {
00712                AB = bufIndexPtr[i].meshIndex[0];
00713                BC = bufIndexPtr[i].meshIndex[1];
00714                CA = bufIndexPtr[i].meshIndex[2];
00715                TAB = bufIndexPtr[i].stIndex[0];
00716                TBC = bufIndexPtr[i].stIndex[1];
00717                TCA = bufIndexPtr[i].stIndex[2];
00718                         
00719                         VertexNum.SetValue(AB,BC,CA);
00720                         TexturNum.SetValue(TAB,TBC,TCA);
00721                         std::pair<ExCVec3D,ExCVec3D> tmp(VertexNum,TexturNum);
00722                         m_VecTriangle.push_back(tmp);
00723                 //      logTri<<"AB:"<<AB<<" BC:"<<BC<<" CA:"<<CA<<std::endl;
00724                 //      logTri<<"TAB:"<<TAB<<" TBC:"<<TBC<<" TCA:"<<TCA<<std::endl;
00725           }
00726      }
00727         //-----------------------------------------------
00728         //read texture coord  data 
00729         //-----------------------------------------------
00730         std::vector<ExCVec2D>           *VecTexture;
00731         VecTexture= new std::vector<ExCVec2D>;  
00732         stPtr = (stIndex_t*)&buffer[m_offsetTexCoords];
00733         for (i = 0; i < m_numTexCoords; i++)
00734         {
00735                 VecTexture->push_back(ExCVec2D(((float)stPtr[i].s / (float)m_skinWidth),((float)stPtr[i].t / (float)m_skinHeight)));
00736         }
00737         //------------------------------
00738         //Build Texture Array
00739         //------------------------------
00740         TabTextures= new float[m_numTriangles*6];
00741         for(i = 0; i < m_numTriangles; i++)
00742         {
00743                 TabTextures[0+i*6]=VecTexture->at(m_VecTriangle.at(i).second.GetY()).GetX();
00744                 TabTextures[1+i*6]=VecTexture->at(m_VecTriangle.at(i).second.GetY()).GetY();
00745                 TabTextures[2+i*6]=VecTexture->at(m_VecTriangle.at(i).second.GetX()).GetX();
00746                 TabTextures[3+i*6]=VecTexture->at(m_VecTriangle.at(i).second.GetX()).GetY();
00747                 TabTextures[4+i*6]=VecTexture->at(m_VecTriangle.at(i).second.GetZ()).GetX();
00748                 TabTextures[5+i*6]=VecTexture->at(m_VecTriangle.at(i).second.GetZ()).GetY();
00749         }
00750         /*for(i = 0; i < m_numTriangles; i++)
00751         {
00752                 std::cout<<TabTextures[0+i*6]<<std::endl;
00753                 std::cout<<TabTextures[1+i*6]<<std::endl;
00754                 std::cout<<TabTextures[2+i*6]<<std::endl;
00755                 std::cout<<TabTextures[3+i*6]<<std::endl;
00756                 std::cout<<TabTextures[4+i*6]<<std::endl;
00757                 std::cout<<TabTextures[5+i*6]<<std::endl;
00758         }
00759         std::cout<<"i:"<<i<<std::endl;*/
00760         delete VecTexture;
00761         delete buffer;
00762         BuildSphere();
00763         return true;
00764 UnGuard
00765 }

bool ExCObject::LoadFile std::string  FileName  )  [virtual, inherited]
 

Redéfinie dans ExCAnimation, ExCEntity, ExCGroupEntity, ExCTexture, ExCInterface, ExCWindowTitleBar, ExCWindow, ExCWindowTitleBar, et ExCGizmoLineBezier.

Définition à la ligne 53 du fichier ExCObject.cpp.

Références Guard, ExCObject::LoadFile(), et UnGuard.

Référencé par ExCModelASC::ExCModelASC(), ExCObject::ExCObject(), ExCWindow::LoadFile(), et ExCObject::LoadFile().

00054 {
00055 Guard(bool ExCObject::LoadFile(std::string FileName))
00056         return true;
00057 UnGuard
00058 }  

void ExCModel::NextFrame void   )  [inherited]
 

Définition à la ligne 100 du fichier ExCModel.cpp.

Références Guard, ExCModel::m_CurrentFrames, ExCModel::m_numFrames, ExCModel::NextFrame(), et UnGuard.

Référencé par InputAction(), ExCModel3DS::InputAction(), et ExCModel::NextFrame().

00101 {
00102 Guard(void ExCModel::NextFrame(void))
00103         m_CurrentFrames++;
00104         if(m_CurrentFrames>m_numFrames)m_CurrentFrames=1;
00105 UnGuard
00106 }

void ExCModel::PreviousFrame void   )  [inherited]
 

Définition à la ligne 108 du fichier ExCModel.cpp.

Références Guard, ExCModel::m_CurrentFrames, ExCModel::m_numFrames, ExCModel::PreviousFrame(), et UnGuard.

Référencé par ExCModel::PreviousFrame().

00109 {
00110 Guard(void ExCModel::PreviousFrame(void))
00111         m_CurrentFrames--;
00112         if(m_CurrentFrames<1)m_CurrentFrames=m_numFrames;
00113 UnGuard
00114 }

void ExCModelMD2::Process std::string  Action  ) 
 

Redéfinie à partir de ExCModel.

Définition à la ligne 199 du fichier ExCModelMD2.cpp.

Références Cos, ExCVec3D::DecX(), ExCVec3D::DecY(), ExCVec3D::DecZ(), ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), Guard, ExCVec3D::IncX(), ExCVec3D::IncY(), ExCVec3D::IncZ(), IsAction(), ExCObject3D::m_Angle, ExCModel::m_CurrentFrames, ExCObject3D::m_Position, Process(), ExCVec3D::SetX(), ExCVec3D::SetY(), ExCVec3D::SetZ(), Sin, StartAction(), ExCModel::StopAction(), et UnGuard.

Référencé par Process(), et ProcessAllAction().

00200 {
00201 Guard(void ExCModelMD2::Process(std::string Action))
00202         if(m_Angle.GetX()<0)m_Angle.SetX(359);
00203         if(m_Angle.GetX()>359)m_Angle.SetX(0);
00204         if(m_Angle.GetY()<0)m_Angle.SetY(359);
00205         if(m_Angle.GetY()>359)m_Angle.SetY(0);
00206         if(m_Angle.GetZ()<0)m_Angle.SetZ(359);
00207         if(m_Angle.GetZ()>359)m_Angle.SetZ(0);
00208         //process action
00209         if(Action=="RUN")
00210         {
00211                 //m_Position=m_Target;
00212                 //return;
00213                 //m_Velocity.SetX(0.01f);
00214         }
00215         if(Action=="STRAFE_LEFT")
00216         {
00217                 float angle;
00218                 angle=m_Angle.GetY()+90;
00219                 if(angle>360)angle=angle-360;
00220                 m_Position=m_Position+ExCVec3D(Cos[(int)angle],0.0f,Sin[(int)angle]);
00221                 return;
00222         }
00223         if(Action=="STRAFE_RIGHT")
00224         {
00225                 float angle;
00226                 angle=m_Angle.GetY()+90;
00227                 if(angle>360)angle=angle-360;
00228                 m_Position=m_Position-ExCVec3D(Cos[(int)angle],0.0f,Sin[(int)angle]);
00229                 return;
00230         }
00231 
00232         if(Action=="TURN_LEFT"){m_Angle.DecY(2);return;}
00233         if(Action=="TURN_RIGHT"){m_Angle.IncY(2);return;}
00234         if(Action=="LOOK_UP"){m_Angle.IncZ(2);return;}
00235         if(Action=="LOOK_DOWN"){m_Angle.DecZ(2);return;}
00236         if(Action=="X_UP"){m_Angle.IncX(2);return;}
00237         if(Action=="X_DOWN"){m_Angle.DecX(2);return;}
00238         if(Action=="JUMP")
00239         {
00240                 if(m_CurrentFrames=72)
00241                 {
00242                         StopAction("JUMP");
00243                         if(!IsAction("RUN")){StartAction("IDLE");}
00244                 }
00245         }
00246 UnGuard
00247 }

void ExCModelMD2::ProcessAllAction void   ) 
 

Définition à la ligne 248 du fichier ExCModelMD2.cpp.

Références Guard, m_VecAction, Process(), ProcessAllAction(), et UnGuard.

Référencé par Draw(), et ProcessAllAction().

00249 {
00250 Guard(void ExCModelMD2::ProcessAllAction(void))
00251         for(unsigned int i=0;i< m_VecAction.size();i++)
00252         {
00253                 Process(m_VecAction.at(i));     
00254         }
00255 UnGuard
00256 }

void ExCModel::ResetCollisionCouter void   )  [inline, inherited]
 

Définition à la ligne 136 du fichier ExCModel.h.

Références ExCModel::m_CollisionCounter.

Référencé par ExManagerCollision::ResolveCollision().

00136 {m_CollisionCounter=0;}

void ExCObject3D::Rotate void   )  [inherited]
 

Définition à la ligne 134 du fichier ExCObject3D.cpp.

Références GetQuaternionFromEuler(), ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), ExCObject3D::m_Angle, ExCVec3D::SetX(), ExCVec3D::SetY(), et ExCVec3D::SetZ().

Référencé par ExCObject3D::Rotate().

00135 {
00136         if(m_Angle.GetX()<0)m_Angle.SetX(359);
00137         if(m_Angle.GetX()>359)m_Angle.SetX(0);
00138         if(m_Angle.GetY()<0)m_Angle.SetY(359);
00139         if(m_Angle.GetY()>359)m_Angle.SetY(0);
00140         if(m_Angle.GetZ()<0)m_Angle.SetZ(359);
00141         if(m_Angle.GetZ()>359)m_Angle.SetZ(0);
00142         
00143         ExQuaternion quat;
00144         ExCMatrix4x4 Matr;
00145         ExCVec3D VecX,VecY,VecZ,VecDir;
00146         
00147         quat=GetQuaternionFromEuler(m_Angle.GetX(),m_Angle.GetY(),m_Angle.GetZ());
00148         //Matr=GetMatrixFromQuaternion(quat);
00149         //Matr=GetMatrixFromEuler(m_AngleX,m_AngleY,m_AngleZ);
00150         
00151         /*VecX.m_Vector[0]=(float)Matr.m_Matrix[0];
00152         VecX.m_Vector[1]=(float)Matr.m_Matrix[1];
00153         VecX.m_Vector[2]=(float)Matr.m_Matrix[2];
00154         VecY.m_Vector[0]=(float)Matr.m_Matrix[4];
00155         VecY.m_Vector[1]=(float)Matr.m_Matrix[5];
00156         VecY.m_Vector[2]=(float)Matr.m_Matrix[6];
00157         VecZ.m_Vector[0]=(float)Matr.m_Matrix[8];
00158         VecZ.m_Vector[1]=(float)Matr.m_Matrix[9];
00159         VecZ.m_Vector[2]=(float)Matr.m_Matrix[10];
00160 
00161         VecDir.m_Vector[0]=VecX.GetVectorLenght();
00162         VecDir.m_Vector[1]=VecY.GetVectorLenght();
00163         VecDir.m_Vector[2]=VecZ.GetVectorLenght();
00164         VecDir=VecX+VecY+VecZ;
00165         std::cout<<"Angle X:"<<m_AngleX<<" Y:"<<m_AngleY<<" Z:"<<m_AngleZ<<std::endl;
00166         std::cout<<"Quater :"<<quat<<std::endl;
00167         std::cout<<"Matrice:"<<Matr<<std::endl;
00168         std::cout<<"vec   X:"<<VecX<<std::endl;
00169         std::cout<<"vec   Y:"<<VecY<<std::endl;
00170         std::cout<<"vec   Z:"<<VecZ<<std::endl;
00171         std::cout<<"vec dir:"<<VecDir<<std::endl;
00172         std::cout<<"vel bef:"<<m_Velocity<<std::endl;
00173         //std::cout<<"vec aft:"<<m_Velocity<<std::endl;
00174         
00175 
00176         m_Target.SetX((Cos[(int)m_AngleY]));
00177         m_Target.SetZ((Sin[(int)m_AngleY]));
00178         m_Target.SetY((Sin[(int)m_AngleX]));
00179         std::cout<<"vec target:"<<m_Target<<std::endl;*/
00180         //VecDir=GetAxisFromQuaternion(quat);
00181         //m_Velocity=m_Velocity*VecDir;
00182         //std::cout<<"vec dir:"<<VecDir<<std::endl;
00183         //std::cout<<"vec vel:"<<m_Velocity<<std::endl;
00184         
00185 }

void ExCObject3D::Rotate float  angleX,
float  angleY,
float  angleZ
[inherited]
 

Définition à la ligne 126 du fichier ExCObject3D.cpp.

Références ExCObject3D::Rotate(), ExCObject3D::SetAngleX(), ExCObject3D::SetAngleY(), et ExCObject3D::SetAngleZ().

00127 {
00128         SetAngleX(angleX);
00129         SetAngleY(angleY);
00130         SetAngleZ(angleZ);
00131         Rotate();       
00132 }

void ExCObject3D::SetAcceleration float  x,
float  y,
float  z
[inline, inherited]
 

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

Références ExCObject3D::m_Acceleration.

00115 {m_Acceleration=ExCVec3D(x,y,z);}

void ExCObject3D::SetAcceleration ExCVec3D  Acceleration  )  [inline, inherited]
 

Définition à la ligne 114 du fichier ExCObject3D.h.

Références ExCObject3D::m_Acceleration.

00114 {m_Acceleration=Acceleration;}

void ExCObject3D::SetAngleX float  Angle  )  [inherited]
 

Définition à la ligne 106 du fichier ExCObject3D.cpp.

Références ExCVec3D::GetX(), ExCObject3D::m_Angle, et ExCVec3D::SetX().

Référencé par ExCObject3D::Rotate().

00107 {
00108         if(m_Angle.GetX()<0)m_Angle.SetX(359);
00109         if(m_Angle.GetX()>359)m_Angle.SetX(0);
00110 }

void ExCObject3D::SetAngleY float  Angle  )  [inherited]
 

Définition à la ligne 112 du fichier ExCObject3D.cpp.

Références ExCVec3D::GetY(), ExCObject3D::m_Angle, et ExCVec3D::SetY().

Référencé par ExCObject3D::Rotate().

00113 {
00114         if(m_Angle.GetY()<0)m_Angle.SetY(359);
00115         if(m_Angle.GetY()>359)m_Angle.SetY(0);
00116 }

void ExCObject3D::SetAngleZ float  Angle  )  [inherited]
 

Définition à la ligne 118 du fichier ExCObject3D.cpp.

Références ExCObject3D::m_Angle, et ExCVec3D::SetZ().

Référencé par ExCObject3D::Rotate().

00119 {
00120         /*if(m_AngleZ<0)m_AngleZ=359;
00121         if(m_AngleZ>359)m_AngleZ=0;*/
00122         m_Angle.SetZ(Angle);
00123 }

void ExCModel::SetCurrentFrame int  frame  )  [inherited]
 

Définition à la ligne 116 du fichier ExCModel.cpp.

Références Guard, ExCModel::m_CurrentFrames, ExCModel::m_numFrames, ExCModel::SetCurrentFrame(), et UnGuard.

Référencé par ExCModel::SetCurrentFrame().

00117 {
00118 Guard(void ExCModel::SetCurrentFrame(int frame))
00119   if(frame>0&&frame<m_numFrames)
00120         m_CurrentFrames=frame;
00121 UnGuard
00122 }

void ExCObject3D::SetCurrentState bool  state  )  [inline, inherited]
 

Définition à la ligne 101 du fichier ExCObject3D.h.

Références ExCObject3D::m_CurrentObject.

00101 {m_CurrentObject=state;}

void ExCObject::SetFileName std::string  FileName  )  [inline, inherited]
 

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

Références ExCObject::m_ObjectFileName.

Référencé par ExManagerModel::Load(), ExManagerMap::Load(), ExManagerEntity::Load(), ExCGizmoLineBezier::LoadFile(), ExCAnimation::LoadFile(), et ExManagerEntity::LoadGroupe().

00098 {m_ObjectFileName = FileName;}

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

Définition à la ligne 66 du fichier ExCObject.cpp.

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

Référencé par ExManagerId::RecordObject().

00067 {
00068         Consol=consol;
00069         FluxAction=action;
00070 }

void ExCObject3D::SetGravity float  x,
float  y,
float  z
[inline, inherited]
 

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

Références ExCObject3D::m_Gravity.

00123 {m_Gravity=ExCVec3D(x,y,z);}

void ExCObject3D::SetGravity ExCVec3D  Gravity  )  [inline, inherited]
 

Définition à la ligne 122 du fichier ExCObject3D.h.

Références ExCObject3D::m_Gravity.

00122 {m_Gravity=Gravity;}

void ExCObject::SetId ExNihilo::ExId  Id  )  [inline, inherited]
 

Définition à la ligne 96 du fichier ExCObject.h.

Références ExNihilo::ExId, et ExCObject::m_ObjectId.

Référencé par ExCSystemeParticule::CreateNewParticle(), ExCObject::ExCObject(), ExManagerId::RecordObject(), et ExCObject::SetIdName().

00096 {m_ObjectId=Id;}

void ExCObject::SetIdName ExNihilo::IdName  idname  )  [inherited]
 

Définition à la ligne 47 du fichier ExCObject.cpp.

Références ExNihilo::IdName, ExCObject::SetId(), et ExCObject::SetName().

00048 {
00049         SetName(idname.second);
00050         SetId(idname.first);
00051 }

void ExCModel::SetInterpolationPourcentage float  inter  )  [inline, inherited]
 

Définition à la ligne 122 du fichier ExCModel.h.

Références ExCModel::m_InterpolationPourcentage.

void ExCModel::SetManagerTexture ExManagerTexture Texture  )  [inline, inherited]
 

Définition à la ligne 124 du fichier ExCModel.h.

Références ExCModel::ManagerTexture.

Référencé par ExCMesh3ds::Draw(), ExManagerModel::Load(), et ExCMeshLOD3ds::Load().

00124 {ManagerTexture = Texture;}

void ExCObject::SetName std::string  Name  )  [inline, inherited]
 

Redéfinie dans ExCTexture.

Définition à la ligne 97 du fichier ExCObject.h.

Références ExCObject::m_ObjectName.

Référencé par ExManagerCamera::AddCamera(), ExCAnimation::ExCAnimation(), ExCCamera::ExCCamera(), ExCCameraChase::ExCCameraChase(), ExCCameraFirst::ExCCameraFirst(), ExCCameraFlight::ExCCameraFlight(), ExCCameraFree::ExCCameraFree(), ExCEntity::ExCEntity(), ExCFont::ExCFont(), ExCGizmo::ExCGizmo(), ExCGizmoElipsoide::ExCGizmoElipsoide(), ExCGizmoFace::ExCGizmoFace(), ExCGizmoLine::ExCGizmoLine(), ExCGizmoLineBezier::ExCGizmoLineBezier(), ExCGizmoPoint::ExCGizmoPoint(), ExCGizmoRectangle::ExCGizmoRectangle(), ExCGizmoSphere::ExCGizmoSphere(), ExCGroupEntity::ExCGroupEntity(), ExCInterface::ExCInterface(), ExCLight::ExCLight(), ExCLoadingAnimation::ExCLoadingAnimation(), ExCMesh::ExCMesh(), ExCMesh3ds::ExCMesh3ds(), ExCMeshBilboarded::ExCMeshBilboarded(), ExCMeshFireEffect::ExCMeshFireEffect(), ExCMeshLOD3ds::ExCMeshLOD3ds(), ExCMeshSauronEffect::ExCMeshSauronEffect(), ExCMeshSmogEffect::ExCMeshSmogEffect(), ExCMeshSummonCylenderEffect::ExCMeshSummonCylenderEffect(), ExCMeshWaterDisqueEffect::ExCMeshWaterDisqueEffect(), ExCMeshWaterEffect::ExCMeshWaterEffect(), ExCModel3DS::ExCModel3DS(), ExCModelASC::ExCModelASC(), ExCModelEXM::ExCModelEXM(), ExCModelMD2(), ExCModelMD3::ExCModelMD3(), ExCModelOBJ::ExCModelOBJ(), ExCObject::ExCObject(), ExCObject2D::ExCObject2D(), ExCObject3D::ExCObject3D(), ExCParticule::ExCParticule(), ExCParticuleLine::ExCParticuleLine(), ExCParticulePoint::ExCParticulePoint(), ExCParticuleTexture::ExCParticuleTexture(), ExCSound::ExCSound(), ExCSpirit::ExCSpirit(), ExCSystemeParticule::ExCSystemeParticule(), ExCVertexProgram::ExCVertexProgram(), ExCWindowContent::ExCWindowContent(), ExCWindowControl::ExCWindowControl(), ExCWindowTitleBar::ExCWindowTitleBar(), ExManagerSpirit::Init(), ExManagerFont::Init(), ExCWindowTitleBar::Init(), ExCWindowObject::Init(), ExCWindowMessageBoxQuestion::Init(), ExCWindowMessageBox::Init(), ExCWindowLabel::Init(), ExCWindowEditLabel::Init(), ExCWindowButtonSwitchOnMouse::Init(), ExCWindowButtonSwitch::Init(), ExCWindowButton::Init(), ExCWindow::Init(), ExManagerModel::Load(), ExManagerMesh::Load(), ExCSystemeParticule::Load(), ExCModelASC::Load(), ExManagerLoad::LoadAnimationFile(), ExCGroupEntity::LoadFile(), ExCAnimation::LoadFile(), ExManagerEntity::LoadGroupe(), ExManagerSound::LoadSound(), ExManagerId::RecordObject(), et ExCObject::SetIdName().

00097 {m_ObjectName = Name;}

void ExCObject3D::SetOldPosition float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 135 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldPosition.

00135 {m_OldPosition=ExCVec3D(x,y,z);}

void ExCObject3D::SetOldPosition ExCVec3D  OldPosition  )  [inline, inherited]
 

Définition à la ligne 134 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldPosition.

00134 {m_OldPosition=OldPosition;}

void ExCObject3D::SetOldTarget float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 139 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldTarget.

00139 {m_OldTarget=ExCVec3D(x,y,z);}

void ExCObject3D::SetOldTarget ExCVec3D  OldTarget  )  [inline, inherited]
 

Définition à la ligne 138 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldTarget.

00138 {m_OldTarget=OldTarget;}

void ExCObject3D::SetPosition float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 127 du fichier ExCObject3D.h.

Références ExCObject3D::m_Position.

00127 {m_Position=ExCVec3D(x,y,z);}

void ExCObject3D::SetPosition ExCVec3D  Position  )  [inline, inherited]
 

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

Références ExCObject3D::m_Position.

Référencé par Draw(), et ExManagerEntity::LoadGroupe().

00126 {m_Position=Position;}

void ExCModel::SetRenderMode int  mode  )  [inline, inherited]
 

Définition à la ligne 139 du fichier ExCModel.h.

Références ExCModel::m_RenderMode.

00139 {m_RenderMode = mode;}

void ExCObject3D::SetShowInfoState bool  state  )  [inline, inherited]
 

Définition à la ligne 104 du fichier ExCObject3D.h.

Références ExCObject3D::m_ShowInfo.

Référencé par ExManagerCamera::InputAction().

00104 {m_ShowInfo=state;}

void ExCObject3D::SetTarget float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 131 du fichier ExCObject3D.h.

Références ExCObject3D::m_Target.

00131 {m_Target=ExCVec3D(x,y,z);}

void ExCObject3D::SetTarget ExCVec3D  Target  )  [inline, inherited]
 

Définition à la ligne 130 du fichier ExCObject3D.h.

Références ExCObject3D::m_Target.

Référencé par ExManagerCollision::ResolveCollision().

00130 {m_Target=Target;}

void ExCObject::SetType std::string  Type  )  [inline, inherited]
 

Définition à la ligne 99 du fichier ExCObject.h.

Références ExCObject::m_ObjectType.

Référencé par ExCAnimation::ExCAnimation(), ExCCamera::ExCCamera(), ExCCameraChase::ExCCameraChase(), ExCCameraFirst::ExCCameraFirst(), ExCCameraFlight::ExCCameraFlight(), ExCCameraFree::ExCCameraFree(), ExCEntity::ExCEntity(), ExCFont::ExCFont(), ExCGizmo::ExCGizmo(), ExCGizmoElipsoide::ExCGizmoElipsoide(), ExCGizmoFace::ExCGizmoFace(), ExCGizmoLine::ExCGizmoLine(), ExCGizmoLineBezier::ExCGizmoLineBezier(), ExCGizmoPoint::ExCGizmoPoint(), ExCGizmoRectangle::ExCGizmoRectangle(), ExCGizmoSphere::ExCGizmoSphere(), ExCGroupEntity::ExCGroupEntity(), ExCInterface::ExCInterface(), ExCLight::ExCLight(), ExCLoadingAnimation::ExCLoadingAnimation(), ExCMesh::ExCMesh(), ExCMesh3ds::ExCMesh3ds(), ExCMeshBilboarded::ExCMeshBilboarded(), ExCMeshFireEffect::ExCMeshFireEffect(), ExCMeshLOD3ds::ExCMeshLOD3ds(), ExCMeshSauronEffect::ExCMeshSauronEffect(), ExCMeshSmogEffect::ExCMeshSmogEffect(), ExCMeshSummonCylenderEffect::ExCMeshSummonCylenderEffect(), ExCMeshWaterDisqueEffect::ExCMeshWaterDisqueEffect(), ExCMeshWaterEffect::ExCMeshWaterEffect(), ExCModel3DS::ExCModel3DS(), ExCModelASC::ExCModelASC(), ExCModelEXM::ExCModelEXM(), ExCModelMD2(), ExCModelMD3::ExCModelMD3(), ExCModelOBJ::ExCModelOBJ(), ExCObject::ExCObject(), ExCObject2D::ExCObject2D(), ExCObject3D::ExCObject3D(), ExCParticule::ExCParticule(), ExCParticuleLine::ExCParticuleLine(), ExCParticulePoint::ExCParticulePoint(), ExCParticuleTexture::ExCParticuleTexture(), ExCSound::ExCSound(), ExCSpirit::ExCSpirit(), ExCSystemeParticule::ExCSystemeParticule(), ExCTexture::ExCTexture(), ExCVertexProgram::ExCVertexProgram(), ExCWindowContent::ExCWindowContent(), ExCWindowControl::ExCWindowControl(), ExCWindowTitleBar::ExCWindowTitleBar(), ExCWindowObject::Init(), ExCWindowMessageBoxQuestion::Init(), ExCWindowMessageBox::Init(), ExCWindowLabel::Init(), ExCWindowEditLabel::Init(), ExCWindowButtonSwitchOnMouse::Init(), ExCWindowButtonSwitch::Init(), ExCWindowButton::Init(), ExCWindow::Init(), et ExManagerId::RecordObject().

00099 {m_ObjectType = Type;}

void ExCObject3D::SetVelocity float  x,
float  y,
float  z
[inline, inherited]
 

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

Références ExCObject3D::m_Velocity.

00119 {m_Velocity=ExCVec3D(x,y,z);}

void ExCObject3D::SetVelocity ExCVec3D  Velocity  )  [inline, inherited]
 

Définition à la ligne 118 du fichier ExCObject3D.h.

Références ExCObject3D::m_Velocity.

Référencé par ExManagerCollision::ResolveCollision().

00118 {m_Velocity=Velocity;}

void ExCObject3D::SetVisibleState bool  state  )  [inline, inherited]
 

Définition à la ligne 145 du fichier ExCObject3D.h.

Références ExCObject3D::m_Visible.

Référencé par ExCModel3DS::ExCModel3DS(), ExCModelMD2(), ExManagerEntity::InputAction(), et ExCModel3DS::InputAction().

00145 {m_Visible=state;}

void ExCModelMD2::ShowInfo void   ) 
 

Redéfinie à partir de ExCObject3D.

Définition à la ligne 773 du fichier ExCModelMD2.cpp.

Références ExCObject::GetId(), ExCObject::GetName(), ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), Guard, ExCObject3D::m_Acceleration, ExCObject3D::m_Angle, ExCObject3D::m_Gravity, ExCObject3D::m_Life, ExCObject3D::m_Position, ExCObject3D::m_Target, ExCObject3D::m_Velocity, ShowInfo(), UnGuard, et ExNihilo::WriteToScreen().

Référencé par ShowInfo().

00774 {
00775 Guard(void ExCModelMD2::ShowInfo(void))
00776         
00777         char *CIdName;
00778         char *CPosition;
00779         char *CVelocity;
00780         char *CAcceleration;
00781         char *CGravity;
00782         char *CLife;
00783         char *CAngle;
00784         char *CTarget;
00785 
00786         CIdName= new char[strlen("Name : Id:")+strlen(GetName().data())+7];
00787         sprintf(CIdName,"Name :%s Id:%ld",GetName().data(),GetId());
00788         ExNihilo::WriteToScreen(650,20,CIdName);        
00789 
00790         CPosition= new char[strlen("Position X: Y: Z:")+30];
00791         sprintf(CPosition,"Position X:%f Y:%f Z:%f",m_Position.GetX(),m_Position.GetY(),m_Position.GetZ());
00792         ExNihilo::WriteToScreen(650,35,CPosition);
00793 
00794         CVelocity= new char[strlen("Velocity X: Y: Z:")+30];
00795         sprintf(CVelocity,"Velocity X:%f Y:%f Z:%f",m_Velocity.GetX(),m_Velocity.GetY(),m_Velocity.GetZ());
00796         ExNihilo::WriteToScreen(650,50,CVelocity);      
00797 
00798         CGravity= new char[strlen("Gravity X: Y: Z:")+30];
00799         sprintf(CGravity,"Gravity X:%f Y:%f Z:%f",m_Gravity.GetX(),m_Gravity.GetY(),m_Gravity.GetZ());
00800         ExNihilo::WriteToScreen(650,65,CGravity);       
00801 
00802         CAcceleration= new char[strlen("Acceleration X: Y: Z:")+30];
00803         sprintf(CAcceleration,"Acceleration X:%f Y:%f Z:%f",m_Acceleration.GetX(),m_Acceleration.GetY(),m_Acceleration.GetZ());
00804         ExNihilo::WriteToScreen(650,80,CAcceleration);  
00805         
00806         CTarget= new char[strlen("Target X: Y: Z:")+30];
00807         sprintf(CTarget,"Target X:%f Y:%f Z:%f",m_Target.GetX(),m_Target.GetY(),m_Target.GetZ());
00808         ExNihilo::WriteToScreen(650,95,CTarget);        
00809 
00810         CAngle= new char[strlen("Angle X: Y: Z:")+30];
00811         sprintf(CAngle,"Angle X:%f Y:%f Z:%f",m_Angle.GetX(),m_Angle.GetY(),m_Angle.GetZ());
00812         ExNihilo::WriteToScreen(650,110,CAngle);
00813 
00814         CLife= new char[strlen("Life :")+10];
00815         sprintf(CLife,"Life :%f",m_Life);
00816         ExNihilo::WriteToScreen(650,125,CLife); 
00817         
00818         delete CIdName;
00819         delete CPosition;
00820         delete CVelocity;
00821         delete CAcceleration;
00822         delete CGravity;
00823         delete CLife;
00824         delete CAngle;
00825         delete CTarget;
00826 UnGuard
00827 }

void ExCModelMD2::StartAction std::string  Action  )  [virtual]
 

Redéfinie à partir de ExCModel.

Définition à la ligne 285 du fichier ExCModelMD2.cpp.

Références Guard, ExCModel::m_CurrentAction, ExCModel::m_CurrentFrames, ExCModel::m_KeyFrameStartAction, ExCModel::m_KeyFrameStopAction, ExCModel::m_Transition, m_VecAction, StartAction(), et UnGuard.

Référencé par ExCModelMD2(), InputAction(), Process(), et StartAction().

00286 {
00287 Guard(void ExCModelMD2::StartAction(std::string  Action))
00288         m_VecAction.push_back(Action);
00289         m_CurrentAction=Action;
00290         if(m_CurrentAction=="RUN")
00291         {
00292                 m_KeyFrameStartAction=40;
00293                 m_KeyFrameStopAction=46;
00294         }
00295         if(m_CurrentAction=="ATTACK")
00296         {
00297                 m_KeyFrameStartAction=47;
00298                 m_KeyFrameStopAction=60;
00299         }       
00300         if(m_CurrentAction=="CROUCH")
00301         {
00302                 m_KeyFrameStartAction=136;
00303                 m_KeyFrameStopAction=154;
00304         }       
00305         if(m_CurrentAction=="JUMP")
00306         {
00307                 m_KeyFrameStartAction=67;
00308                 m_KeyFrameStopAction=73;
00309         }       
00310         if(m_CurrentAction=="IDLE")
00311         {
00312                 m_KeyFrameStartAction=1;
00313                 m_KeyFrameStopAction=39;
00314         }
00315         if(m_CurrentAction=="FULL")
00316         {
00317                 m_KeyFrameStartAction=113;
00318                 m_KeyFrameStopAction=125;
00319 
00320         }
00321         if(m_CurrentAction=="TURN_LEFT")
00322         {
00323                 m_KeyFrameStartAction=41;
00324                 m_KeyFrameStopAction=46;
00325     }
00326         if(m_CurrentAction=="TURN_RIGHT")
00327         {
00328                 m_KeyFrameStartAction=41;
00329                 m_KeyFrameStopAction=46;
00330         }
00331         if(m_CurrentAction=="LOOK_UP")
00332         {
00333                 m_KeyFrameStartAction=1;
00334                 m_KeyFrameStopAction=39;
00335     }
00336         if(m_CurrentAction=="LOOK_DOWN")
00337         {
00338                 m_KeyFrameStartAction=1;
00339                 m_KeyFrameStopAction=39;
00340         }
00341         if(m_CurrentAction=="FULL")
00342         {
00343                 m_KeyFrameStartAction=1;
00344                 m_KeyFrameStopAction=198;
00345         }
00346         if(m_CurrentAction=="NONE")
00347         {
00348                 m_KeyFrameStartAction=1;
00349                 m_KeyFrameStopAction=1;
00350         }       
00351         m_Transition=true;
00352         m_CurrentFrames=m_KeyFrameStartAction;
00353 UnGuard
00354 }

void ExCModel::StartRun void   )  [virtual, inherited]
 

Définition à la ligne 124 du fichier ExCModel.cpp.

Références Guard, ExCModel::StartRun(), et UnGuard.

Référencé par ExCModel::StartRun().

00125 {
00126 Guard(void ExCModel::StartRun(void))
00127         //m_CurrentFrames=40;
00128         //m_Transition=true;
00129 UnGuard
00130 }

void ExCModel::StopAction void   )  [virtual, inherited]
 

Définition à la ligne 146 du fichier ExCModel.cpp.

Références Guard, ExCModel::StopAction(), et UnGuard.

Référencé par InputAction(), ExCModel3DS::InputAction(), Process(), ExCModel3DS::Process(), et ExCModel::StopAction().

00147 {
00148 Guard(void ExCModel::StopAction(void))
00149 UnGuard
00150 }

void ExCModelMD2::StopAction std::string  Action  ) 
 

Définition à la ligne 258 du fichier ExCModelMD2.cpp.

Références Guard, m_IVecAction, m_VecAction, StopAction(), et UnGuard.

Référencé par StopAction().

00259 {
00260 Guard(void ExCModelMD2::StopAction(std::string   Action))
00261         for(m_IVecAction= m_VecAction.begin();m_IVecAction!= m_VecAction.end();m_IVecAction++)
00262         {
00263                 if(strcmp(m_IVecAction->data(),Action.data())==0)
00264                 {
00265                         m_VecAction.erase(m_IVecAction);
00266                         return;
00267                 }
00268         }       
00269 UnGuard
00270 }

void ExCModel::StopRun void   )  [virtual, inherited]
 

Définition à la ligne 132 du fichier ExCModel.cpp.

Références Guard, ExCModel::StopRun(), et UnGuard.

Référencé par ExCModel::StopRun().

00133 {
00134 Guard(void ExCModel::StopRun(void))
00135         //m_CurrentFrames=1;
00136         //m_Transition=false; 
00137 UnGuard
00138 }


Documentation des données imbriquées

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

Redéfinie dans ExCInterface, et ExCSystemeParticule.

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

Référencé par ExCTexture::LoadFile(), et ExCObject::SetFlux().

int ExCModelMD2::count [protected]
 

Définition à la ligne 149 du fichier ExCModelMD2.h.

Référencé par ExCModelMD2().

ExCFluxAction* ExCObject::FluxAction [inherited]
 

Définition à la ligne 76 du fichier ExCObject.h.

Référencé par ExCAnimation::Draw(), et ExCObject::SetFlux().

ExCVec3D ExCObject3D::m_Acceleration [protected, inherited]
 

Redéfinie dans ExCParticule.

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

Référencé par ExCModel::Draw(), ExCObject3D::ExCObject3D(), ExCObject3D::GetAcceleration(), InputAction(), ExCModel3DS::InputAction(), ExCObject3D::SetAcceleration(), ExCObject3D::ShowInfo(), et ShowInfo().

bool ExCModel::m_AlwaysDraw [inherited]
 

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

Référencé par ExCModel3DS::Draw(), ExCModel3DS::ExCModel3DS(), et ExCModel3DS::InputAction().

ExCVec3D ExCObject3D::m_Angle [inherited]
 

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

Référencé par ExCSystemeParticule::Draw(), ExCModel::Draw(), ExCGroupEntity::Draw(), ExCEntity::Draw(), ExCCameraFlight::Draw(), ExCCameraFirst::Draw(), ExCCameraChase::Draw(), ExCCamera::Draw(), ExCAnimation::Draw(), ExCCamera::DrawCameraInfo(), ExCObject3D::ExCObject3D(), ExCObject3D::GetAngleX(), ExCObject3D::GetAngleY(), ExCObject3D::GetAngleZ(), ExManagerCamera::InputAction(), InputAction(), ExCModel3DS::InputAction(), ExCGroupEntity::LoadFile(), ExCEntity::LoadFile(), ExCAnimation::LoadFile(), ExManagerEntity::LoadGroupe(), Process(), ExCModel3DS::Process(), ExCCameraFlight::Process(), ExCCamera::Process(), ExManagerEntity::Reload(), ExCLight::Reset(), ExCObject3D::Rotate(), ExCObject3D::SetAngleX(), ExCObject3D::SetAngleY(), ExCObject3D::SetAngleZ(), et ShowInfo().

int ExCModel::m_CollisionCounter [protected, inherited]
 

Définition à la ligne 103 du fichier ExCModel.h.

Référencé par ExCModel::DeCreaseCollisionCouter(), ExCModel3DS::ExCModel3DS(), ExCModelMD2(), ExCModel::IncreaseCollisionCouter(), et ExCModel::ResetCollisionCouter().

ExCGizmo* ExCModel::m_CollisionGizmo [protected, inherited]
 

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

Référencé par Draw(), ExCModel3DS::ExCModel3DS(), ExCModelEXM::ExCModelEXM(), ExCModelMD2(), et ExCModel::GetCollisionGizmo().

ExCGizmoSphere ExCModelMD2::m_CollisionSphere
 

Définition à la ligne 171 du fichier ExCModelMD2.h.

Référencé par BuildSphere(), et Draw().

std::string ExCModel::m_CurrentAction [protected, inherited]
 

Définition à la ligne 101 du fichier ExCModel.h.

Référencé par StartAction(), et ExCModel3DS::StartAction().

int ExCModel::m_CurrentFrames [protected, inherited]
 

Définition à la ligne 93 du fichier ExCModel.h.

Référencé par Draw(), ExCModelMD2(), ExCModel::GetCurrentFrame(), ExCModel::NextFrame(), ExCModel::PreviousFrame(), Process(), ExCModel3DS::Process(), ExCModel::SetCurrentFrame(), et StartAction().

bool ExCObject3D::m_CurrentObject [protected, inherited]
 

Définition à la ligne 79 du fichier ExCObject3D.h.

Référencé par ExCObject3D::ExCObject3D(), et ExCObject3D::SetCurrentState().

int ExCModelMD2::m_frameSize [protected]
 

Définition à la ligne 132 du fichier ExCModelMD2.h.

Référencé par Load().

ExCVec3D ExCObject3D::m_Gravity [protected, inherited]
 

Redéfinie dans ExCParticule.

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

Référencé par ExCModel::Draw(), ExCObject3D::ExCObject3D(), ExCObject3D::GetGravity(), ExCObject3D::SetGravity(), ExCObject3D::ShowInfo(), et ShowInfo().

float ExCModel::m_Interpolation [protected, inherited]
 

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

Référencé par Draw(), et ExCModelMD2().

float ExCModel::m_InterpolationPourcentage [protected, inherited]
 

Définition à la ligne 96 du fichier ExCModel.h.

Référencé par Draw(), ExCModelMD2(), ExCModel::GetInterpolationPourcentage(), et ExCModel::SetInterpolationPourcentage().

std::vector<std::string>::iterator ExCModelMD2::m_IVecAction [protected]
 

Définition à la ligne 165 du fichier ExCModelMD2.h.

Référencé par IsAction(), et StopAction().

int ExCModel::m_KeyFrameStartAction [protected, inherited]
 

Définition à la ligne 99 du fichier ExCModel.h.

Référencé par Draw(), et StartAction().

int ExCModel::m_KeyFrameStopAction [protected, inherited]
 

Définition à la ligne 100 du fichier ExCModel.h.

Référencé par Draw(), et StartAction().

std::string ExCModelMD2::m_LastAction [protected]
 

Définition à la ligne 151 du fichier ExCModelMD2.h.

double ExCModelMD2::m_LastTime [protected]
 

Définition à la ligne 154 du fichier ExCModelMD2.h.

Référencé par Draw().

double ExCObject3D::m_Life [protected, inherited]
 

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

Référencé par ExCObject3D::ExCObject3D(), ExCObject3D::ShowInfo(), et ShowInfo().

int ExCModelMD2::m_magic [protected]
 

Définition à la ligne 128 du fichier ExCModelMD2.h.

Référencé par Load().

float ExCObject3D::m_Mass [protected, inherited]
 

Redéfinie dans ExCParticule.

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

Référencé par ExCObject3D::ExCObject3D().

int ExCModel::m_NextFrame [protected, inherited]
 

Définition à la ligne 94 du fichier ExCModel.h.

Référencé par Draw(), et ExCModelMD2().

int ExCModel::m_numFrames [protected, inherited]
 

Définition à la ligne 95 du fichier ExCModel.h.

Référencé par Load(), ExCModel::NextFrame(), ExCModel::PreviousFrame(), et ExCModel::SetCurrentFrame().

int ExCModelMD2::m_numGlCommands [protected]
 

Définition à la ligne 137 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_numSkins [protected]
 

Définition à la ligne 133 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_numTexCoords [protected]
 

Définition à la ligne 135 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_numTriangles [protected]
 

Définition à la ligne 136 du fichier ExCModelMD2.h.

Référencé par Draw(), et Load().

int ExCModelMD2::m_numVertices [protected]
 

Définition à la ligne 134 du fichier ExCModelMD2.h.

Référencé par Draw(), et Load().

std::string ExCObject::m_ObjectFileName [protected, inherited]
 

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

Référencé par ExCObject::GetFileName(), ExCTexture::LoadFile(), et ExCObject::SetFileName().

ExNihilo::ExId ExCObject::m_ObjectId [protected, inherited]
 

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

Référencé par ExCObject::GetId(), et ExCObject::SetId().

std::string ExCObject::m_ObjectName [protected, inherited]
 

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

Référencé par ExCObject::GetName(), ExCGroupEntity::LoadFile(), ExCEntity::LoadFile(), ExCTexture::SetName(), et ExCObject::SetName().

std::string ExCObject::m_ObjectType [protected, inherited]
 

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

Référencé par ExCObject::GetType(), et ExCObject::SetType().

int ExCModelMD2::m_offsetEnd [protected]
 

Définition à la ligne 144 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_offsetFrames [protected]
 

Définition à la ligne 142 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_offsetGlCommands [protected]
 

Définition à la ligne 143 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_offsetSkins [protected]
 

Définition à la ligne 139 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_offsetTexCoords [protected]
 

Définition à la ligne 140 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_offsetTriangles [protected]
 

Définition à la ligne 141 du fichier ExCModelMD2.h.

Référencé par Load().

ExCVec3D ExCObject3D::m_OldPosition [inherited]
 

Définition à la ligne 83 du fichier ExCObject3D.h.

Référencé par ExCParticule::Draw(), Draw(), ExCObject3D::GetOldPosition(), et ExCObject3D::SetOldPosition().

ExCVec3D ExCObject3D::m_OldTarget [inherited]
 

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

Référencé par ExCObject3D::GetOldTarget(), et ExCObject3D::SetOldTarget().

ExCVec3D ExCObject3D::m_Position [inherited]
 

Redéfinie dans ExCParticule.

Définition à la ligne 82 du fichier ExCObject3D.h.

Référencé par ExCSystemeParticule::CalculateEmitPosition(), Draw(), ExCModel3DS::Draw(), ExCModel::Draw(), ExCMeshSmogEffect::Draw(), ExCMeshLOD3ds::Draw(), ExCMeshFireEffect::Draw(), ExCMeshBilboarded::Draw(), ExCLight::Draw(), ExCHeightMap::Draw(), ExCGroupEntity::Draw(), ExCEntity::Draw(), ExCCameraFlight::Draw(), ExCCameraFirst::Draw(), ExCCameraChase::Draw(), ExCCamera::Draw(), ExCAnimation::Draw(), ExCCamera::DrawCameraGizmo(), ExCCamera::DrawCameraInfo(), ExCObject3D::ExCObject3D(), ExCModel::Forward(), ExCObject3D::GetPosition(), ExCLight::GetPositionX(), ExCLight::GetPositionY(), ExCLight::GetPositionZ(), ExManagerCamera::InputAction(), InputAction(), ExCModel3DS::InputAction(), ExCHeightMap::Load(), ExCGroupEntity::LoadFile(), ExCEntity::LoadFile(), ExManagerEntity::LoadGroupe(), Process(), ExCModel3DS::Process(), ExCLight::Reset(), ExCObject3D::SetPosition(), ExCLight::SetPosition(), ExCLight::SetPositionX(), ExCLight::SetPositionY(), ExCLight::SetPositionZ(), ExCObject3D::ShowInfo(), et ShowInfo().

double ExCObject3D::m_RefreshTime [protected, inherited]
 

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

Référencé par ExCObject3D::ExCObject3D().

int ExCModel::m_RenderMode [protected, inherited]
 

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

Référencé par ExCModel3DS::Draw(), ExCModel3DS::ExCModel3DS(), ExCModel3DS::InputAction(), et ExCModel::SetRenderMode().

bool ExCModelMD2::m_ShowCollisionSphere [protected]
 

Définition à la ligne 153 du fichier ExCModelMD2.h.

Référencé par ExCModelMD2(), et InputAction().

bool ExCObject3D::m_ShowInfo [protected, inherited]
 

Définition à la ligne 78 du fichier ExCObject3D.h.

Référencé par ExCCamera::ExCCamera(), ExCObject3D::ExCObject3D(), ExCObject3D::GetShowInfoState(), et ExCObject3D::SetShowInfoState().

float ExCObject3D::m_Size [protected, inherited]
 

Redéfinie dans ExCMeshBilboarded, ExCMeshFireEffect, ExCMeshWaterEffect, ExCMeshSmogEffect, et ExCParticule.

Définition à la ligne 76 du fichier ExCObject3D.h.

Référencé par ExCObject3D::ExCObject3D(), et ExCSkyBox::ExCSkyBox().

std::string ExCModelMD2::m_Skin [protected]
 

Définition à la ligne 162 du fichier ExCModelMD2.h.

Référencé par Draw(), et Load().

int ExCModelMD2::m_skinHeight [protected]
 

Définition à la ligne 131 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCModelMD2::m_skinWidth [protected]
 

Définition à la ligne 130 du fichier ExCModelMD2.h.

Référencé par Load().

int ExCObject3D::m_speed [inherited]
 

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

Référencé par Draw(), ExCCameraFlight::Draw(), ExCCamera::Draw(), ExCCamera::ExCCamera(), ExCModelMD2(), et ExManagerCamera::InputAction().

float ExCObject3D::m_SphereRadius [inherited]
 

Définition à la ligne 91 du fichier ExCObject3D.h.

Référencé par BuildSphere(), ExCModelMD2(), et ExManagerCollision::ResolveCollision().

double ExCObject3D::m_StartingLife [protected, inherited]
 

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

Référencé par ExCObject3D::ExCObject3D().

ExCVec3D ExCObject3D::m_Target [inherited]
 

Définition à la ligne 84 du fichier ExCObject3D.h.

Référencé par ExCModel::Draw(), ExCCameraFlight::Draw(), ExCCameraFirst::Draw(), ExCCameraChase::Draw(), ExCCamera::Draw(), ExCCamera::DrawCameraGizmo(), ExCCamera::DrawCameraInfo(), ExCModel::Forward(), ExCObject3D::GetTarget(), ExCLight::GetTargetX(), ExCLight::GetTargetY(), ExCLight::GetTargetZ(), ExManagerCamera::InputAction(), ExCLight::Reset(), ExCObject3D::SetTarget(), ExCLight::SetTarget(), ExCLight::SetTargetX(), ExCLight::SetTargetY(), ExCLight::SetTargetZ(), et ShowInfo().

bool ExCModel::m_Transition [protected, inherited]
 

Définition à la ligne 97 du fichier ExCModel.h.

Référencé par Draw(), ExCModelMD2(), et StartAction().

ExCVec3D ExCObject3D::m_Up [protected, inherited]
 

Définition à la ligne 67 du fichier ExCObject3D.h.

Référencé par ExCCameraFlight::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw().

std::vector<std::string> ExCModelMD2::m_VecAction [protected]
 

Définition à la ligne 164 du fichier ExCModelMD2.h.

Référencé par InputAction(), IsAction(), ProcessAllAction(), StartAction(), et StopAction().

std::vector<std::string> ExCModelMD2::m_VecSkin [protected]
 

Définition à la ligne 158 du fichier ExCModelMD2.h.

Référencé par Load().

std::vector< std::pair<ExCVec3D , ExCVec3D > > ExCModelMD2::m_VecTriangle [protected]
 

Définition à la ligne 160 du fichier ExCModelMD2.h.

Référencé par Draw(), et Load().

std::vector<ExCVec3D> ExCModelMD2::m_VecVertex [protected]
 

Définition à la ligne 161 du fichier ExCModelMD2.h.

Référencé par Draw(), et Load().

ExCVec3D ExCObject3D::m_Velocity [protected, inherited]
 

Redéfinie dans ExCParticule.

Définition à la ligne 68 du fichier ExCObject3D.h.

Référencé par ExCModel::Draw(), ExCModelMD2(), ExCObject3D::ExCObject3D(), ExCObject3D::GetVelocity(), InputAction(), ExCModel3DS::InputAction(), ExCObject3D::SetVelocity(), ExCObject3D::ShowInfo(), et ShowInfo().

int ExCModelMD2::m_version [protected]
 

Définition à la ligne 129 du fichier ExCModelMD2.h.

Référencé par Load().

bool ExCObject3D::m_Visible [inherited]
 

Définition à la ligne 92 du fichier ExCObject3D.h.

Référencé par Draw(), ExCModel3DS::Draw(), ExCMeshWaterDisqueEffect::Draw(), ExCMeshSummonCylenderEffect::Draw(), ExCMeshSmogEffect::Draw(), ExCMeshSauronEffect::Draw(), ExCMeshLOD3ds::Draw(), ExCMeshFireEffect::Draw(), ExCMeshBilboarded::Draw(), ExCMesh3ds::Draw(), ExCMesh::Draw(), ExCGroupEntity::Draw(), ExCGizmoSphere::Draw(), ExCGizmoLineBezier::Draw(), ExCEntity::Draw(), ExCEntity::ExCEntity(), ExCGroupEntity::ExCGroupEntity(), ExCObject3D::GetVisibleState(), ExCMesh3ds::Load(), ExCGroupEntity::LoadFile(), ExCEntity::LoadFile(), et ExCObject3D::SetVisibleState().

ExManagerTexture* ExCModel::ManagerTexture [protected, inherited]
 

Définition à la ligne 92 du fichier ExCModel.h.

Référencé par ExCModelASC::BuildList(), ExCModel3DS::BuildList(), ExCModel3DS::CallAllArray(), Draw(), ExCModelEXM::Draw(), ExCModel3DS::Draw(), Load(), ExCModelASC::ProcessLine(), ExCModel3DS::ReadFace(), et ExCModel::SetManagerTexture().

float* ExCModelMD2::TabTextures [protected]
 

Définition à la ligne 147 du fichier ExCModelMD2.h.

Référencé par Draw(), et Load().

float* ExCModelMD2::TabVertices [protected]
 

Définition à la ligne 146 du fichier ExCModelMD2.h.

Référencé par Draw().


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