- Cal3D 0.11 API Reference -

physique.h
1 //****************************************************************************//
2 // physique.h //
3 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4 //****************************************************************************//
5 // This library is free software; you can redistribute it and/or modify it //
6 // under the terms of the GNU Lesser General Public License as published by //
7 // the Free Software Foundation; either version 2.1 of the License, or (at //
8 // your option) any later version. //
9 //****************************************************************************//
10 
11 #ifndef CAL_PHYSIQUE_H
12 #define CAL_PHYSIQUE_H
13 
14 #include "cal3d/global.h"
15 
16 
17 class CalModel;
18 class CalSubmesh;
19 class CalVector;
20 
21 
22 class CAL3D_API CalPhysique
23 {
24 public:
25  CalPhysique(CalModel* pModel);
26  ~CalPhysique() { }
27 
28  int calculateTangentSpaces(CalSubmesh *pSubmesh, int mapId, float *pTangentSpaceBuffer, int stride=0);
29  int calculateNormals(CalSubmesh *pSubmesh, float *pNormalBuffer, int stride=0);
30  int calculateVertices(CalSubmesh *pSubmesh, float *pVertexBuffer, int stride=0);
31  CalVector calculateVertex(CalSubmesh *pSubmesh, int vertexId);
32  int calculateVerticesAndNormals(CalSubmesh *pSubmesh, float *pVertexBuffer, int stride=0);
33  int calculateVerticesNormalsAndTexCoords(CalSubmesh *pSubmesh, float *pVertexBuffer,int NumTexCoords=1);
34  void update();
35  void setNormalization(bool normalize);
36  void setAxisFactorX(float factor);
37  void setAxisFactorY(float factor);
38  void setAxisFactorZ(float factor);
39 
40 private:
41  CalModel *m_pModel;
42  bool m_Normalize;
43  float m_axisFactorX;
44  float m_axisFactorY;
45  float m_axisFactorZ;
46 };
47 
48 #endif
49 
50 //****************************************************************************//
Definition: submesh.h:22
Definition: physique.h:22
The vector class.
Definition: vector.h:36
Definition: model.h:30

Generated at Wed Nov 26 2014 05:33:20 by The Cal3D Team with Doxygen 1.8.7