Changeset 6310 in orxonox.OLD for trunk/src/lib/graphics/importer/vertex_array_model.h
- Timestamp:
- Dec 27, 2005, 12:24:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/vertex_array_model.h
r6308 r6310 11 11 #include "glincl.h" 12 12 13 #include "array.h"14 13 #include <vector> 15 14 … … 40 39 void addNormal(float x, float y, float z); 41 40 void addTexCoor(float u, float v); 42 void addIndice(GLubyte indice); 41 void addColor(float r, float g, float b); 42 43 void addIndice(GLuint indice); 43 44 44 45 void finalize(); 45 46 46 47 // 47 void planeModel(); 48 void planeModel(float sizeX, float sizeY, unsigned int resolutionX, unsigned int resolutionY); 49 void spiralSphere(const float radius, const unsigned int loops, const unsigned int segmentsPerLoop); 50 51 void debug() const; 48 52 49 53 private: … … 53 57 bool bFinalized; //!< Sets the Object to be finalized. 54 58 55 tArray<GLfloat> vertices; //!< The Array that handles the Vertices. 56 tArray<GLfloat> normals; //!< The Array that handles the Normals. 57 tArray<GLfloat> texCoords; //!< The Array that handles the VertexTextureCoordinates. 59 std::vector<GLfloat> vertices; //!< The Array that handles the Vertices. 60 std::vector<GLfloat> normals; //!< The Array that handles the Normals. 61 std::vector<GLfloat> texCoords; //!< The Array that handles the VertexTextureCoordinates. 62 std::vector<GLfloat> colors; //!< The Array that handles Colors. 58 63 59 tArray<GLubyte>indices; //!< The Array that tells us what Vertex is connected to which other one.64 std::vector<GLuint> indices; //!< The Array that tells us what Vertex is connected to which other one. 60 65 61 66 std::vector<GLuint> stripes; //!< A lsit of Stripes of this Model.
Note: See TracChangeset
for help on using the changeset viewer.