Changeset 6452 in orxonox.OLD for trunk/src/lib/graphics/importer/vertex_array_model.h
- Timestamp:
- Jan 9, 2006, 10:42:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/vertex_array_model.h
r6310 r6452 45 45 void finalize(); 46 46 47 unsigned int vertexCount() const { return this->vertices.size(); }; 48 unsigned int normalCount() const { return this->normals.size(); }; 49 unsigned int texCoordCount() const { return this->texCoords.size(); }; 50 unsigned int colorCount() const { return this->colors.size(); }; 51 unsigned int indiceCount() const { return this->indices.size(); }; 52 53 float& vertex(unsigned int i) { return this->vertices[i]; }; 54 47 55 // 48 56 void planeModel(float sizeX, float sizeY, unsigned int resolutionX, unsigned int resolutionY); … … 55 63 56 64 private: 57 bool bFinalized; //!< Sets the Object to be finalized. 58 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. 65 std::vector<float> vertices; //!< The Array that handles the Vertices. 66 std::vector<float> normals; //!< The Array that handles the Normals. 67 std::vector<float> texCoords; //!< The Array that handles the VertexTextureCoordinates. 68 std::vector<float> colors; //!< The Array that handles Colors. 63 69 64 70 std::vector<GLuint> indices; //!< The Array that tells us what Vertex is connected to which other one.
Note: See TracChangeset
for help on using the changeset viewer.