29 #ifndef __TRACEMODEL_H__
30 #define __TRACEMODEL_H__
63 #define MAX_TRACEMODEL_VERTS 32
64 #define MAX_TRACEMODEL_EDGES 32
65 #define MAX_TRACEMODEL_POLYS 16
66 #define MAX_TRACEMODEL_POLYEDGES 16
133 void Shrink(
const float m );
void SetupPolygon(const idVec3 *v, const int count)
void Rotate(const idMat3 &rotation)
bool operator!=(const idTraceModel &trm) const
int GetProjectionSilhouetteEdges(const idVec3 &projectionOrigin, int silEdges[MAX_TRACEMODEL_EDGES]) const
void SetupBox(const idBounds &boxBounds)
traceModelVert_t verts[MAX_TRACEMODEL_VERTS]
bool operator==(const idTraceModel &trm) const
void SetupCylinder(const idBounds &cylBounds, const int numSides)
GLuint GLuint GLsizei GLenum type
traceModelEdge_t edges[MAX_TRACEMODEL_EDGES+1]
void GetMassProperties(const float density, float &mass, idVec3 ¢erOfMass, idMat3 &inertiaTensor) const
int GetOrderedSilhouetteEdges(const int edgeIsSilEdge[MAX_TRACEMODEL_EDGES+1], int silEdges[MAX_TRACEMODEL_EDGES]) const
bool Compare(const idTraceModel &trm) const
void InitOctahedron(void)
#define MAX_TRACEMODEL_POLYS
void Translate(const idVec3 &translation)
GLuint GLuint GLsizei count
void VolumeFromPolygon(idTraceModel &trm, float thickness) const
void SetupBone(const float length, const float width)
GLubyte GLubyte GLubyte GLubyte w
void SetupOctahedron(const idBounds &octBounds)
void SetupCone(const idBounds &coneBounds, const int numSides)
GLubyte GLubyte GLubyte a
GLenum GLsizei GLsizei height
void ProjectionIntegrals(int polyNum, int a, int b, struct projectionIntegrals_s &integrals) const
int GetParallelProjectionSilhouetteEdges(const idVec3 &projectionDir, int silEdges[MAX_TRACEMODEL_EDGES]) const
void Shrink(const float m)
#define MAX_TRACEMODEL_EDGES
GLsizei const GLcharARB const GLint * length
float GetPolygonArea(int polyNum) const
void PolygonIntegrals(int polyNum, int a, int b, int c, struct polygonIntegrals_s &integrals) const
void VolumeIntegrals(struct volumeIntegrals_s &integrals) const
traceModelPoly_t polys[MAX_TRACEMODEL_POLYS]
int GenerateEdgeNormals(void)
#define MAX_TRACEMODEL_VERTS
void SetupDodecahedron(const idBounds &dodBounds)
#define MAX_TRACEMODEL_POLYEDGES
void InitDodecahedron(void)