- 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
17class CalModel;
18class CalSubmesh;
19class CalVector;
20
21
22class CAL3D_API CalPhysique
23{
24public:
25 CalPhysique(CalModel* pModel);
26 virtual ~CalPhysique() { }
27
28 int calculateTangentSpaces(CalSubmesh *pSubmesh, int mapId, float *pTangentSpaceBuffer, int stride=0) const;
29 virtual int calculateNormals(CalSubmesh *pSubmesh, float *pNormalBuffer, int stride=0) const;
30 virtual int calculateVertices(CalSubmesh *pSubmesh, float *pVertexBuffer, int stride=0) const;
31 CalVector calculateVertex(CalSubmesh *pSubmesh, int vertexId);
32 virtual int calculateVerticesAndNormals(CalSubmesh *pSubmesh, float *pVertexBuffer, int stride=0) const;
33 virtual int calculateVerticesNormalsAndTexCoords(CalSubmesh *pSubmesh, float *pVertexBuffer, int NumTexCoords=1) const;
34 void update();
35 void setNormalization(bool normalize);
36 void setAxisFactorX(float factor);
37 void setAxisFactorY(float factor);
38 void setAxisFactorZ(float factor);
39
40protected:
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 model.h:31
Definition physique.h:23
Definition submesh.h:30
The vector class.
Definition vector.h:37

Generated by The Cal3D Team with Doxygen 1.10.0