#include <ExCModelMD2.h>
Graphe d'héritage de la classe ExCModelMD2
|
|
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 } |
|
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 } |
|
Redéfinie dans ExCModel3DS, et ExCModel3DS. Définition à la ligne 137 du fichier ExCModel.h.
00137 {}; |
|
Définition à la ligne 135 du fichier ExCModel.h. Références ExCModel::m_CollisionCounter.
00135 {m_CollisionCounter--;} |
|
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 } |
|
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 } |
|
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 133 du fichier ExCModel.h. Références ExCModel::m_CollisionGizmo. Référencé par ExManagerCollision::ResolveCollision().
00133 {return m_CollisionGizmo;} |
|
Définition à la ligne 121 du fichier ExCModel.h. Références ExCModel::m_CurrentFrames.
00121 {return m_CurrentFrames; } |
|
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 ShowInfo().
00092 {return m_ObjectId;} |
|
Définition à la ligne 123 du fichier ExCModel.h. Références ExCModel::m_InterpolationPourcentage.
00123 {return m_InterpolationPourcentage;} |
|
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;} |
|
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 134 du fichier ExCModel.h. Références ExCModel::m_CollisionCounter. Référencé par ExManagerCollision::ResolveCollision().
00134 {m_CollisionCounter++;} |
|
|
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 } |
|
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 } |
|
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 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 } |
|
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 } |
|
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 } |
|
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 } |
|
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;} |
|
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 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 } |
|
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 122 du fichier ExCModel.h. Références ExCModel::m_InterpolationPourcentage.
00122 {m_InterpolationPourcentage=inter;} |
|
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;} |
|
|
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 Draw(), et ExManagerEntity::LoadGroupe().
00126 {m_Position=Position;} |
|
Définition à la ligne 139 du fichier ExCModel.h. Références ExCModel::m_RenderMode.
00139 {m_RenderMode = mode;} |
|
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(), ExManagerEntity::InputAction(), et ExCModel3DS::InputAction().
00145 {m_Visible=state;} |
|
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 } |
|
|
Définition à la ligne 124 du fichier ExCModel.cpp. Références Guard, ExCModel::StartRun(), et UnGuard. Référencé par ExCModel::StartRun().
|
|
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().
|
|
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 } |
|
Définition à la ligne 132 du fichier ExCModel.cpp. Références Guard, ExCModel::StopRun(), et UnGuard. Référencé par ExCModel::StopRun().
|
|
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 149 du fichier ExCModelMD2.h. Référencé par ExCModelMD2(). |
|
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(), InputAction(), ExCModel3DS::InputAction(), ExCObject3D::SetAcceleration(), ExCObject3D::ShowInfo(), et ShowInfo(). |
|
Définition à la ligne 115 du fichier ExCModel.h. Référencé par ExCModel3DS::Draw(), ExCModel3DS::ExCModel3DS(), et ExCModel3DS::InputAction(). |
|
|
Définition à la ligne 103 du fichier ExCModel.h. Référencé par ExCModel::DeCreaseCollisionCouter(), ExCModel3DS::ExCModel3DS(), ExCModelMD2(), ExCModel::IncreaseCollisionCouter(), et ExCModel::ResetCollisionCouter(). |
|
Définition à la ligne 102 du fichier ExCModel.h. Référencé par Draw(), ExCModel3DS::ExCModel3DS(), ExCModelEXM::ExCModelEXM(), ExCModelMD2(), et ExCModel::GetCollisionGizmo(). |
|
Définition à la ligne 171 du fichier ExCModelMD2.h. Référencé par BuildSphere(), et Draw(). |
|
Définition à la ligne 101 du fichier ExCModel.h. Référencé par StartAction(), et ExCModel3DS::StartAction(). |
|
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(). |
|
Définition à la ligne 79 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(), et ExCObject3D::SetCurrentState(). |
|
Définition à la ligne 132 du fichier ExCModelMD2.h. Référencé par Load(). |
|
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(). |
|
Définition à la ligne 98 du fichier ExCModel.h. Référencé par Draw(), et ExCModelMD2(). |
|
Définition à la ligne 96 du fichier ExCModel.h. Référencé par Draw(), ExCModelMD2(), ExCModel::GetInterpolationPourcentage(), et ExCModel::SetInterpolationPourcentage(). |
|
Définition à la ligne 165 du fichier ExCModelMD2.h. Référencé par IsAction(), et StopAction(). |
|
Définition à la ligne 99 du fichier ExCModel.h. Référencé par Draw(), et StartAction(). |
|
Définition à la ligne 100 du fichier ExCModel.h. Référencé par Draw(), et StartAction(). |
|
Définition à la ligne 151 du fichier ExCModelMD2.h. |
|
Définition à la ligne 154 du fichier ExCModelMD2.h. Référencé par Draw(). |
|
Définition à la ligne 74 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(), ExCObject3D::ShowInfo(), et ShowInfo(). |
|
Définition à la ligne 128 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Redéfinie dans ExCParticule. Définition à la ligne 77 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
Définition à la ligne 94 du fichier ExCModel.h. Référencé par Draw(), et ExCModelMD2(). |
|
Définition à la ligne 95 du fichier ExCModel.h. Référencé par Load(), ExCModel::NextFrame(), ExCModel::PreviousFrame(), et ExCModel::SetCurrentFrame(). |
|
Définition à la ligne 137 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 133 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 135 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 136 du fichier ExCModelMD2.h. |
|
Définition à la ligne 134 du fichier ExCModelMD2.h. |
|
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 144 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 142 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 143 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 139 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 140 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 141 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 83 du fichier ExCObject3D.h. Référencé par ExCParticule::Draw(), 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 105 du fichier ExCModel.h. Référencé par ExCModel3DS::Draw(), ExCModel3DS::ExCModel3DS(), ExCModel3DS::InputAction(), et ExCModel::SetRenderMode(). |
|
Définition à la ligne 153 du fichier ExCModelMD2.h. Référencé par ExCModelMD2(), et InputAction(). |
|
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::ExCSkyBox(). |
|
Définition à la ligne 162 du fichier ExCModelMD2.h. |
|
Définition à la ligne 131 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 130 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 90 du fichier ExCObject3D.h. Référencé par Draw(), ExCCameraFlight::Draw(), ExCCamera::Draw(), ExCCamera::ExCCamera(), ExCModelMD2(), et ExManagerCamera::InputAction(). |
|
Définition à la ligne 91 du fichier ExCObject3D.h. Référencé par BuildSphere(), ExCModelMD2(), et ExManagerCollision::ResolveCollision(). |
|
Définition à la ligne 75 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
|
Définition à la ligne 97 du fichier ExCModel.h. Référencé par Draw(), ExCModelMD2(), et StartAction(). |
|
Définition à la ligne 67 du fichier ExCObject3D.h. Référencé par ExCCameraFlight::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw(). |
|
Définition à la ligne 164 du fichier ExCModelMD2.h. Référencé par InputAction(), IsAction(), ProcessAllAction(), StartAction(), et StopAction(). |
|
Définition à la ligne 158 du fichier ExCModelMD2.h. Référencé par Load(). |
|
Définition à la ligne 160 du fichier ExCModelMD2.h. |
|
Définition à la ligne 161 du fichier ExCModelMD2.h. |
|
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(). |
|
Définition à la ligne 129 du fichier ExCModelMD2.h. Référencé par Load(). |
|
|
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(). |
|
Définition à la ligne 147 du fichier ExCModelMD2.h. |
|
Définition à la ligne 146 du fichier ExCModelMD2.h. Référencé par Draw(). |