- Cal3D 0.9 API Reference -

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

physique.h

00001 //****************************************************************************//
00002 // physique.h                                                                 //
00003 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger                       //
00004 //****************************************************************************//
00005 // This library is free software; you can redistribute it and/or modify it    //
00006 // under the terms of the GNU Lesser General Public License as published by   //
00007 // the Free Software Foundation; either version 2.1 of the License, or (at    //
00008 // your option) any later version.                                            //
00009 //****************************************************************************//
00010 
00011 #ifndef CAL_PHYSIQUE_H
00012 #define CAL_PHYSIQUE_H
00013 
00014 //****************************************************************************//
00015 // Includes                                                                   //
00016 //****************************************************************************//
00017 
00018 #include "cal3d/global.h"
00019 
00020 //****************************************************************************//
00021 // Forward declarations                                                       //
00022 //****************************************************************************//
00023 
00024 class CalModel;
00025 class CalSubmesh;
00026 class CalVector;
00027 
00028 //****************************************************************************//
00029 // Class declaration                                                          //
00030 //****************************************************************************//
00031 
00032  /*****************************************************************************/
00036 class CAL3D_API CalPhysique
00037 {
00038 // member variables
00039 public:
00040   CalModel *m_pModel;
00041   bool m_Normalize;
00042 
00043 // constructors/destructor
00044 public:
00045   CalPhysique();
00046   virtual ~CalPhysique();
00047 
00048 // member functions 
00049 public:
00050   int calculateTangentSpaces(CalSubmesh *pSubmesh, int mapId, float *pTangentSpaceBuffer);
00051   int calculateNormals(CalSubmesh *pSubmesh, float *pNormalBuffer);
00052   int calculateVertices(CalSubmesh *pSubmesh, float *pVertexBuffer);
00053   CalVector calculateVertex(CalSubmesh *pSubmesh, int vertexId);
00054   int calculateVerticesAndNormals(CalSubmesh *pSubmesh, float *pVertexBuffer);
00055   int calculateVerticesNormalsAndTexCoords(CalSubmesh *pSubmesh, float *pVertexBuffer,int NumTexCoords=1);  
00056   bool create(CalModel *pModel);
00057   void destroy();
00058   void update();
00059   void setNormalization(bool normalize);
00060 };
00061 
00062 #endif
00063 
00064 //****************************************************************************//

Generated at Thu Dec 2 20:28:13 2004 by The Cal3D Team with doxygen 1.3.9.1 © 1997-2001 Dimitri van Heesch