4 #include "include_opengl.h"
27 float maxX, maxY, maxZ;
28 float minX, minY, minZ;
40 void init(
int numVertices, GLfloat* vertices, GLfloat* normals, GLfloat* texCoords,
41 GLenum primitiveMode,
bool adjacency=
false);
42 void init(
int numVertices, GLfloat* vertices, GLfloat* normals, GLfloat* texCoords,
int numIndices, GLuint* indices,
43 GLenum primitiveMode,
bool adjacency=
false);
77 bool hasIndices()
const;
78 bool hasNormals()
const;
79 bool hasTexCoords()
const;
80 bool hasColors()
const;
81 int getNumIndices()
const;
82 int getNumVertices()
const;
84 GLenum getPrimitiveMode()
const;
86 const GLfloat* getVertices()
const;
87 const GLfloat* getNormals()
const;
88 const GLfloat* getTexCoords()
const;
89 const GLfloat* getColors()
const;
90 const GLuint* getIndices()
const;
98 bool hasMinMax()
const;
99 void getMin(
float& outX,
float& outY,
float& outZ)
const;
100 void getMax(
float& outX,
float& outY,
float& outZ)
const;
120 float _minX, _minY, _minZ;
121 float _maxX, _maxY, _maxZ;
126 GLenum _primitiveMode;
130 void calcAdjacency(
int numIndices, GLuint* indices,
int numVertices, GLfloat* vertices, GLenum primitiveMode);