#include <ExCSkyBox.h>
Graphe d'héritage de la classe ExCSkyBox

Membres publics | |
| ExCSkyBox (void) | |
| ~ExCSkyBox (void) | |
| void | SetManagerTexture (ExManagerTexture *Texture) |
| void | Draw (void) |
| void | Load (std::string FileName) |
| void | SetCurrentState (bool state) |
| void | ShowInfo (void) |
| 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 | |
| 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 |
| ExCFluxAction * | FluxAction |
Membres protégés | |
| void | BuildBox (void) |
Attributs Protégés | |
| ExManagerTexture * | ManagerTexture |
| float * | m_TabTextures |
| float * | m_TabVertices |
| SkyBox | m_SkyBox |
| 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 |
|
|
Définition à la ligne 26 du fichier ExCSkyBox.cpp. Références ExCObject3D::m_Size.
00027 {
00028 m_Size=1000;
00029
00030 }
|
|
|
Définition à la ligne 32 du fichier ExCSkyBox.cpp.
00033 {
00034 }
|
|
|
Définition à la ligne 36 du fichier ExCSkyBox.cpp. Références BuildBox(), Guard, m_TabTextures, m_TabVertices, et UnGuard. Référencé par BuildBox(), et Load().
00037 {
00038 Guard(void ExCSkyBox::BuildBox(void))
00039 m_TabVertices= new float[72];
00040 m_TabTextures= new float[48];
00041
00042
00043 // Front Face
00044 int i=0,j=0;
00045 m_TabVertices[i+0]=-1;m_TabVertices[i+1]= 1;m_TabVertices[i+2]= 1;
00046 m_TabVertices[i+3]= 1;m_TabVertices[i+4]= 1;m_TabVertices[i+5]= 1;
00047 m_TabVertices[i+6]= 1;m_TabVertices[i+7]=-1;m_TabVertices[i+8]= 1;
00048 m_TabVertices[i+9]=-1;m_TabVertices[i+10]=-1;m_TabVertices[i+11]= 1;
00049
00050 m_TabTextures[j+0]=1.0f;m_TabTextures[j+1]=1.0f;
00051 m_TabTextures[j+2]=0.0f;m_TabTextures[j+3]=1.0f;
00052 m_TabTextures[j+4]=0.0f;m_TabTextures[j+5]=0.0f;
00053 m_TabTextures[j+6]=1.0f;m_TabTextures[j+7]=0.0f;
00054
00055 // Back Face
00056 i=12,j=8;
00057 m_TabVertices[i+0]= 1;m_TabVertices[i+1]=-1;m_TabVertices[i+2]= -1;
00058 m_TabVertices[i+3]= 1;m_TabVertices[i+4]= 1;m_TabVertices[i+5]= -1;
00059 m_TabVertices[i+6]=-1;m_TabVertices[i+7]= 1;m_TabVertices[i+8]= -1;
00060 m_TabVertices[i+9]=-1;m_TabVertices[i+10]=-1;m_TabVertices[i+11]= -1;
00061
00062 m_TabTextures[j+0]=1.0f;m_TabTextures[j+1]=0.0f;
00063 m_TabTextures[j+2]=1.0f;m_TabTextures[j+3]=1.0f;
00064 m_TabTextures[j+4]=0.0f;m_TabTextures[j+5]=1.0f;
00065 m_TabTextures[j+6]=0.0f;m_TabTextures[j+7]=0.0f;
00066 // Top Face
00067 i=24,j=16;
00068 m_TabVertices[i+0]= 1;m_TabVertices[i+1]= 1;m_TabVertices[i+2]= -1;
00069 m_TabVertices[i+3]= 1;m_TabVertices[i+4]= 1;m_TabVertices[i+5]= 1;
00070 m_TabVertices[i+6]=-1;m_TabVertices[i+7]= 1;m_TabVertices[i+8]= 1;
00071 m_TabVertices[i+9]=-1;m_TabVertices[i+10]= 1;m_TabVertices[i+11]= -1;
00072
00073 m_TabTextures[j+0]=1.0f;m_TabTextures[j+1]=0.0f;
00074 m_TabTextures[j+2]=1.0f;m_TabTextures[j+3]=1.0f;
00075 m_TabTextures[j+4]=0.0f;m_TabTextures[j+5]=1.0f;
00076 m_TabTextures[j+6]=0.0f;m_TabTextures[j+7]=0.0f;
00077 // Bottom Face
00078 i=36,j=24;
00079 m_TabVertices[i+0]=-1;m_TabVertices[i+1]=-1;m_TabVertices[i+2]= 1;
00080 m_TabVertices[i+3]= 1;m_TabVertices[i+4]=-1;m_TabVertices[i+5]= 1;
00081 m_TabVertices[i+6]= 1;m_TabVertices[i+7]=-1;m_TabVertices[i+8]= -1;
00082 m_TabVertices[i+9]=-1;m_TabVertices[i+10]=-1;m_TabVertices[i+11]= -1;
00083
00084 m_TabTextures[j+0]=0.0f;m_TabTextures[j+1]=0.0f;
00085 m_TabTextures[j+2]=1.0f;m_TabTextures[j+3]=0.0f;
00086 m_TabTextures[j+4]=1.0f;m_TabTextures[j+5]=1.0f;
00087 m_TabTextures[j+6]=0.0f;m_TabTextures[j+7]=1.0f;
00088 // Right face
00089 i=48,j=32;
00090 m_TabVertices[i+0]= 1;m_TabVertices[i+1]=-1;m_TabVertices[i+2]= 1;
00091 m_TabVertices[i+3]= 1;m_TabVertices[i+4]= 1;m_TabVertices[i+5]= 1;
00092 m_TabVertices[i+6]= 1;m_TabVertices[i+7]= 1;m_TabVertices[i+8]= -1;
00093 m_TabVertices[i+9]= 1;m_TabVertices[i+10]=-1;m_TabVertices[i+11]= -1;
00094
00095 m_TabTextures[j+0]=1.0f;m_TabTextures[j+1]=0.0f;
00096 m_TabTextures[j+2]=1.0f;m_TabTextures[j+3]=1.0f;
00097 m_TabTextures[j+4]=0.0f;m_TabTextures[j+5]=1.0f;
00098 m_TabTextures[j+6]=0.0f;m_TabTextures[j+7]=0.0f;
00099 // Left Face
00100 i=60,j=40;
00101 m_TabVertices[i+0]=-1;m_TabVertices[i+1]= 1;m_TabVertices[i+2]= -1;
00102 m_TabVertices[i+3]=-1;m_TabVertices[i+4]= 1;m_TabVertices[i+5]= 1;
00103 m_TabVertices[i+6]=-1;m_TabVertices[i+7]=-1;m_TabVertices[i+8]= 1;
00104 m_TabVertices[i+9]=-1;m_TabVertices[i+10]=-1;m_TabVertices[i+11]= -1;
00105
00106 m_TabTextures[j+0]=1.0f;m_TabTextures[j+1]=1.0f;
00107 m_TabTextures[j+2]=0.0f;m_TabTextures[j+3]=1.0f;
00108 m_TabTextures[j+4]=0.0f;m_TabTextures[j+5]=0.0f;
00109 m_TabTextures[j+6]=1.0f;m_TabTextures[j+7]=0.0f;
00110 UnGuard
00111 }
|
|
|
Redéfinie à partir de ExCObject. Définition à la ligne 183 du fichier ExCSkyBox.cpp. Références Draw(), Guard, SkyBox::m_Size, m_SkyBox, m_TabTextures, m_TabVertices, SkyBox::m_Texture, ManagerTexture, ExManagerTexture::ResetMultitexture(), ExManagerTexture::SetTexture(), et UnGuard. Référencé par ExManagerMap::Draw(), et Draw().
00184 {
00185 Guard(void ExCSkyBox::Draw(void))
00186 glPushAttrib(GL_ALL_ATTRIB_BITS);
00187 glEnable(GL_TEXTURE_2D);
00188 glDisable(GL_LIGHTING);
00189 glColor3f(1.0f,1.0f,1.0f);
00190 glPushMatrix();
00191 glTranslatef(0,4000,0);
00192 glScalef(m_SkyBox.m_Size,m_SkyBox.m_Size,m_SkyBox.m_Size);
00193 for(int i=0;i<6;i++)
00194 {
00195 ManagerTexture->SetTexture(3,m_SkyBox.m_Texture[3][i]);
00196 glTexCoordPointer(2,GL_FLOAT,0,m_TabTextures);
00197 ManagerTexture->SetTexture(2,m_SkyBox.m_Texture[2][i]);
00198 glTexCoordPointer(2,GL_FLOAT,0,m_TabTextures);
00199 ManagerTexture->SetTexture(1,m_SkyBox.m_Texture[1][i]);
00200 glTexCoordPointer(2,GL_FLOAT,0,m_TabTextures);
00201 ManagerTexture->SetTexture(0,m_SkyBox.m_Texture[0][i]);
00202 glTexCoordPointer(2,GL_FLOAT,0,m_TabTextures);
00203 glVertexPointer(3,GL_FLOAT,0,m_TabVertices);
00204 glDrawArrays( GL_QUADS, 0+(i*4), 4 );
00205 ManagerTexture->ResetMultitexture();
00206 }
00207 glPopMatrix();
00208 glPopAttrib();
00209 UnGuard
00210 }
|
|
|
Définition à la ligne 116 du fichier ExCObject3D.h. Références ExCObject3D::m_Acceleration.
00116 {return m_Acceleration;}
|
|
|
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().
|
|
|
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().
|
|
|
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().
|
|
|
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;}
|
|
|
Définition à la ligne 124 du fichier ExCObject3D.h. Références ExCObject3D::m_Gravity.
00124 {return m_Gravity;}
|
|
|
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 ExCModelMD2::ShowInfo().
00092 {return m_ObjectId;}
|
|
|
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 ExCModelMD2::ShowInfo().
00093 {return m_ObjectName;}
|
|
|
Définition à la ligne 136 du fichier ExCObject3D.h. Références ExCObject3D::m_OldPosition.
00136 {return m_OldPosition;}
|
|
|
Définition à la ligne 140 du fichier ExCObject3D.h. Références ExCObject3D::m_OldTarget.
00140 {return m_OldTarget;}
|
|
|
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;}
|
|
|
Définition à la ligne 105 du fichier ExCObject3D.h. Références ExCObject3D::m_ShowInfo.
00105 {return m_ShowInfo;}
|
|
|
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;}
|
|
|
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;}
|
|
|
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;}
|
|
|
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;}
|
|
|
Définition à la ligne 113 du fichier ExCSkyBox.cpp. Références BuildBox(), ExNihilo::ExtractFloatValueFromSring(), ExNihilo::ExtracValueFromSring(), Guard, Load(), SkyBox::m_Size, m_SkyBox, SkyBox::m_Texture, ManagerTexture, PREFIX, ExManagerTexture::SetCurrentObject(), SKY_BACK, SKY_BOTTOM, SKY_FRONT, SKY_LEFT, SKY_RIGHT, SKY_TOP, et UnGuard. Référencé par ExManagerMap::InputAction(), ExManagerMap::Load(), et Load().
00114 {
00115 Guard(void ExCSkyBox::Load(std::string FileName))
00116 BuildBox();
00117 char buffer[255],b[255];
00118 std::string buffstring;
00119 std::ifstream file;
00120
00121 #ifdef UNIX_SRC
00122 sprintf(buffer, PREFIX "/ExNihilo/Data/Map/%s", FileName.data());
00123 #else
00124 sprintf(buffer, "../Data/Map/%s", FileName.data());
00125 #endif
00126 file.open(buffer,std::ios::in);
00127 if(file.is_open())
00128 {
00129
00130 try
00131 {
00132
00133 memset(b,0,255);file.getline(b,256,'\n');//pass comment line
00134 memset(b,0,255);file.getline(b,256,'\n');
00135 m_SkyBox.m_Size=ExNihilo::ExtractFloatValueFromSring(b,"<Size>","<#Size>");
00136 for(int j=0;j<4;j++)
00137 {
00138 memset(b,0,255);file.getline(b,256,'\n');//pass comment line
00139 memset(b,0,255);file.getline(b,256,'\n');
00140 m_SkyBox.m_Texture[j][SKY_TOP]=ExNihilo::ExtracValueFromSring(b,"<Texture_top>","<#Texture_top>");
00141 ManagerTexture->SetCurrentObject(m_SkyBox.m_Texture[j][SKY_TOP]);
00142 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
00143 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
00144 memset(b,0,255);file.getline(b,256,'\n');
00145 m_SkyBox.m_Texture[j][SKY_BOTTOM]=ExNihilo::ExtracValueFromSring(b,"<Texture_bottom>","<#Texture_bottom>");
00146 ManagerTexture->SetCurrentObject(m_SkyBox.m_Texture[j][SKY_BOTTOM]);
00147 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
00148 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
00149 memset(b,0,255);file.getline(b,256,'\n');
00150 m_SkyBox.m_Texture[j][SKY_FRONT]=ExNihilo::ExtracValueFromSring(b,"<Texture_front>","<#Texture_front>");
00151 ManagerTexture->SetCurrentObject(m_SkyBox.m_Texture[j][SKY_FRONT]);
00152 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
00153 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
00154 memset(b,0,255);file.getline(b,256,'\n');
00155 m_SkyBox.m_Texture[j][SKY_BACK]=ExNihilo::ExtracValueFromSring(b,"<Texture_back>","<#Texture_back>");
00156 ManagerTexture->SetCurrentObject(m_SkyBox.m_Texture[j][SKY_BACK]);
00157 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
00158 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
00159 memset(b,0,255);file.getline(b,256,'\n');
00160 m_SkyBox.m_Texture[j][SKY_LEFT]=ExNihilo::ExtracValueFromSring(b,"<Texture_left>","<#Texture_left>");
00161 ManagerTexture->SetCurrentObject(m_SkyBox.m_Texture[j][SKY_LEFT]);
00162 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
00163 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
00164 memset(b,0,255);file.getline(b,256,'\n');
00165 m_SkyBox.m_Texture[j][SKY_RIGHT]=ExNihilo::ExtracValueFromSring(b,"<Texture_right>","<#Texture_right>");
00166 ManagerTexture->SetCurrentObject(m_SkyBox.m_Texture[j][SKY_RIGHT]);
00167 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
00168 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
00169
00170 }
00171
00172 }catch(ExCExpStringNotFound){std::cout<<"Bad file type "<<buffer<<std::endl;}
00173 }else
00174 {
00175 std::cout<<"File not found:"<<buffer<<std::endl;
00176 throw ExCExpFileNotFound();
00177 }
00178
00179 UnGuard
00180 }
|
|
|
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().
|
|
|
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 }
|
|
||||||||||||||||
|
Définition à la ligne 126 du fichier ExCObject3D.cpp. Références ExCObject3D::Rotate(), ExCObject3D::SetAngleX(), ExCObject3D::SetAngleY(), et ExCObject3D::SetAngleZ().
|
|
||||||||||||||||
|
Définition à la ligne 115 du fichier ExCObject3D.h. Références ExCObject3D::m_Acceleration.
00115 {m_Acceleration=ExCVec3D(x,y,z);}
|
|
|
Définition à la ligne 114 du fichier ExCObject3D.h. Références ExCObject3D::m_Acceleration.
00114 {m_Acceleration=Acceleration;}
|
|
|
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().
|
|
|
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().
|
|
|
Définition à la ligne 118 du fichier ExCObject3D.cpp. Références ExCObject3D::m_Angle, et ExCVec3D::SetZ(). Référencé par ExCObject3D::Rotate().
|
|
|
Définition à la ligne 101 du fichier ExCObject3D.h. Références ExCObject3D::m_CurrentObject.
00101 {m_CurrentObject=state;}
|
|
|
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;}
|
|
||||||||||||
|
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 }
|
|
||||||||||||||||
|
Définition à la ligne 123 du fichier ExCObject3D.h. Références ExCObject3D::m_Gravity.
|
|
|
Définition à la ligne 122 du fichier ExCObject3D.h. Références ExCObject3D::m_Gravity.
00122 {m_Gravity=Gravity;}
|
|
|
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;}
|
|
|
Définition à la ligne 47 du fichier ExCObject.cpp. Références ExNihilo::IdName, ExCObject::SetId(), et ExCObject::SetName().
|
|
|
Définition à la ligne 100 du fichier ExCSkyBox.h. Références ManagerTexture. Référencé par ExManagerMap::Load().
00100 {ManagerTexture=Texture;}
|
|
|
||||||||||||||||
|
Définition à la ligne 135 du fichier ExCObject3D.h. Références ExCObject3D::m_OldPosition.
00135 {m_OldPosition=ExCVec3D(x,y,z);}
|
|
|
Définition à la ligne 134 du fichier ExCObject3D.h. Références ExCObject3D::m_OldPosition.
00134 {m_OldPosition=OldPosition;}
|
|
||||||||||||||||
|
Définition à la ligne 139 du fichier ExCObject3D.h. Références ExCObject3D::m_OldTarget.
00139 {m_OldTarget=ExCVec3D(x,y,z);}
|
|
|
Définition à la ligne 138 du fichier ExCObject3D.h. Références ExCObject3D::m_OldTarget.
00138 {m_OldTarget=OldTarget;}
|
|
||||||||||||||||
|
Définition à la ligne 127 du fichier ExCObject3D.h. Références ExCObject3D::m_Position.
00127 {m_Position=ExCVec3D(x,y,z);}
|
|
|
Définition à la ligne 126 du fichier ExCObject3D.h. Références ExCObject3D::m_Position. Référencé par ExCModelMD2::Draw(), et ExManagerEntity::LoadGroupe().
00126 {m_Position=Position;}
|
|
|
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;}
|
|
||||||||||||||||
|
Définition à la ligne 131 du fichier ExCObject3D.h. Références ExCObject3D::m_Target.
|
|
|
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;}
|
|
|
||||||||||||||||
|
Définition à la ligne 119 du fichier ExCObject3D.h. Références ExCObject3D::m_Velocity.
00119 {m_Velocity=ExCVec3D(x,y,z);}
|
|
|
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;}
|
|
|
Définition à la ligne 145 du fichier ExCObject3D.h. Références ExCObject3D::m_Visible. Référencé par ExCModel3DS::ExCModel3DS(), ExCModelMD2::ExCModelMD2(), ExManagerEntity::InputAction(), et ExCModel3DS::InputAction().
00145 {m_Visible=state;}
|
|
|
Redéfinie dans ExCModelMD2. Définition à la ligne 55 du fichier ExCObject3D.cpp. Références ExCObject::GetId(), ExCObject::GetName(), ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), Guard, ExCObject3D::m_Acceleration, ExCObject3D::m_Gravity, ExCObject3D::m_Life, ExCObject3D::m_Position, ExCObject3D::m_Velocity, ExCObject3D::ShowInfo(), UnGuard, et ExNihilo::WriteToScreen(). Référencé par ExCObject3D::ShowInfo().
00056 {
00057 Guard(void ExCObject3D::ShowInfo(void))
00058
00059 char *CIdName;
00060 char *CPosition;
00061 char *CVelocity;
00062 char *CAcceleration;
00063 char *CGravity;
00064 char *CLife;
00065
00066 CIdName= new char[strlen("Name : Id:")+strlen(GetName().data())+7];
00067 sprintf(CIdName,"Name :%s Id:%ld",GetName(),GetId());
00068
00069 CPosition= new char[strlen("Position X: Y: Z:")+30];
00070 sprintf(CPosition,"Position X:%f Y:%f Z:%f",m_Position.GetX(),m_Position.GetY(),m_Position.GetZ());
00071
00072 CVelocity= new char[strlen("Velocity X: Y: Z:")+30];
00073 sprintf(CVelocity,"Velocity X:%f Y:%f Z:%f",m_Velocity.GetX(),m_Velocity.GetY(),m_Velocity.GetZ());
00074
00075 CGravity= new char[strlen("Gravity X: Y: Z:")+30];
00076 sprintf(CGravity,"Gravity X:%f Y:%f Z:%f",m_Gravity.GetX(),m_Gravity.GetY(),m_Gravity.GetZ());
00077
00078 CAcceleration= new char[strlen("Acceleration X: Y: Z:")+30];
00079 sprintf(CAcceleration,"Acceleration X:%f Y:%f Z:%f",m_Acceleration.GetX(),m_Acceleration.GetY(),m_Acceleration.GetZ());
00080
00081 CLife= new char[strlen("Life :")+10];
00082 sprintf(CLife,"Life :%f",m_Life);
00083
00084 ExNihilo::WriteToScreen(500,500,CIdName);
00085 ExNihilo::WriteToScreen(500,515,CPosition);
00086 ExNihilo::WriteToScreen(500,530,CVelocity);
00087 ExNihilo::WriteToScreen(500,545,CAcceleration);
00088 ExNihilo::WriteToScreen(500,560,CGravity);
00089 ExNihilo::WriteToScreen(500,575,CLife);
00090 std::cout<<CIdName<<std::endl;
00091 std::cout<<CPosition<<std::endl;
00092 std::cout<<CVelocity<<std::endl;
00093 std::cout<<CAcceleration<<std::endl;
00094 std::cout<<CGravity<<std::endl;
00095 std::cout<<CLife<<std::endl;
00096
00097 delete CIdName;
00098 delete CPosition;
00099 delete CVelocity;
00100 delete CAcceleration;
00101 delete CGravity;
00102 delete CLife;
00103 UnGuard
00104 }
|
|
|
Redéfinie dans ExCInterface, et ExCSystemeParticule. Définition à la ligne 75 du fichier ExCObject.h. Référencé par ExCTexture::LoadFile(), et ExCObject::SetFlux(). |
|
|
Définition à la ligne 76 du fichier ExCObject.h. Référencé par ExCAnimation::Draw(), et ExCObject::SetFlux(). |
|
|
Redéfinie dans ExCParticule. Définition à la ligne 71 du fichier ExCObject3D.h. Référencé par ExCModel::Draw(), ExCObject3D::ExCObject3D(), ExCObject3D::GetAcceleration(), ExCModelMD2::InputAction(), ExCModel3DS::InputAction(), ExCObject3D::SetAcceleration(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo(). |
|
|
|
Définition à la ligne 79 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(), et ExCObject3D::SetCurrentState(). |
|
|
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 ExCModelMD2::ShowInfo(). |
|
|
Définition à la ligne 74 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo(). |
|
|
Redéfinie dans ExCParticule. Définition à la ligne 77 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
|
Définition à la ligne 72 du fichier ExCObject.h. Référencé par ExCObject::GetFileName(), ExCTexture::LoadFile(), et ExCObject::SetFileName(). |
|
|
Définition à la ligne 70 du fichier ExCObject.h. Référencé par ExCObject::GetId(), et ExCObject::SetId(). |
|
|
Définition à la ligne 71 du fichier ExCObject.h. Référencé par ExCObject::GetName(), ExCGroupEntity::LoadFile(), ExCEntity::LoadFile(), ExCTexture::SetName(), et ExCObject::SetName(). |
|
|
Définition à la ligne 73 du fichier ExCObject.h. Référencé par ExCObject::GetType(), et ExCObject::SetType(). |
|
|
Définition à la ligne 83 du fichier ExCObject3D.h. Référencé par ExCParticule::Draw(), ExCModelMD2::Draw(), ExCObject3D::GetOldPosition(), et ExCObject3D::SetOldPosition(). |
|
|
Définition à la ligne 85 du fichier ExCObject3D.h. Référencé par ExCObject3D::GetOldTarget(), et ExCObject3D::SetOldTarget(). |
|
|
|
Définition à la ligne 72 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
|
Définition à la ligne 78 du fichier ExCObject3D.h. Référencé par ExCCamera::ExCCamera(), ExCObject3D::ExCObject3D(), ExCObject3D::GetShowInfoState(), et ExCObject3D::SetShowInfoState(). |
|
|
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(). |
|
|
Définition à la ligne 89 du fichier ExCSkyBox.h. |
|
|
Définition à la ligne 90 du fichier ExCObject3D.h. Référencé par ExCModelMD2::Draw(), ExCCameraFlight::Draw(), ExCCamera::Draw(), ExCCamera::ExCCamera(), ExCModelMD2::ExCModelMD2(), et ExManagerCamera::InputAction(). |
|
|
Définition à la ligne 91 du fichier ExCObject3D.h. Référencé par ExCModelMD2::BuildSphere(), ExCModelMD2::ExCModelMD2(), et ExManagerCollision::ResolveCollision(). |
|
|
Définition à la ligne 75 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
|
Définition à la ligne 87 du fichier ExCSkyBox.h. Référencé par BuildBox(), et Draw(). |
|
|
Définition à la ligne 88 du fichier ExCSkyBox.h. Référencé par BuildBox(), et Draw(). |
|
|
|
Définition à la ligne 67 du fichier ExCObject3D.h. Référencé par ExCCameraFlight::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw(). |
|
|
Redéfinie dans ExCParticule. Définition à la ligne 68 du fichier ExCObject3D.h. Référencé par ExCModel::Draw(), ExCModelMD2::ExCModelMD2(), ExCObject3D::ExCObject3D(), ExCObject3D::GetVelocity(), ExCModelMD2::InputAction(), ExCModel3DS::InputAction(), ExCObject3D::SetVelocity(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo(). |
|
|
|
Définition à la ligne 86 du fichier ExCSkyBox.h. Référencé par Draw(), Load(), et SetManagerTexture(). |
1.3.4