Changeset 6769 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Jan 26, 2006, 2:09:53 PM (19 years ago)
- Location:
- trunk/src/lib/graphics/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.h
r6622 r6769 18 18 #endif 19 19 20 #include "texture.h" 21 20 22 // FORWARD DECLARATIONS // 21 class Texture;22 23 23 24 //! Class to handle Materials. … … 51 52 void setSpecularMap(const char* sMap, GLenum target = GL_TEXTURE_2D); 52 53 void setBump(const char* bump); 54 GLuint getDiffuseTexture() const { return (this->diffuseTexture)? this->diffuseTexture->getTexture() : 0; }; 53 55 54 56 static void addTexturePath(const char* pathName); -
trunk/src/lib/graphics/importer/vertex_array_model.cc
r6766 r6769 208 208 void VertexArrayModel::addTexCoor(float u, float v) 209 209 { 210 this->texCoords.push_back(u); 211 this->texCoords.push_back(v); 210 this->texCoords.push_back(Vector2D(u,v)); 212 211 this->pModelInfo.numTexCoor++; 213 212 } … … 358 357 this->vertices.size(), 359 358 this->normals.size(), 360 this->texCoords.size() /2,359 this->texCoords.size(), 361 360 this->colors.size() ); 362 361 for (GLuint i = 1; i < this->stripes.size(); ++i) -
trunk/src/lib/graphics/importer/vertex_array_model.h
r6454 r6769 10 10 11 11 #include "glincl.h" 12 #include "vector2D.h" 12 13 13 14 #include <vector> … … 53 54 Vector& vertex(unsigned int i) { return this->vertices[i]; }; 54 55 Vector& normal(unsigned int i) { return this->normals[i]; }; 55 //Vector& texCoord(unsigned int i) { return this->texCoord[i]; };56 Vector2D& texCoord(unsigned int i) { return this->texCoords[i]; }; 56 57 Vector& color(unsigned int i) { return this->colors[i]; }; 57 58 GLuint index(unsigned int i) { return this->indices[i]; }; … … 68 69 std::vector<Vector> vertices; //!< The Array that handles the Vertices. 69 70 std::vector<Vector> normals; //!< The Array that handles the Normals. 70 std::vector< float>texCoords; //!< The Array that handles the VertexTextureCoordinates.71 std::vector<Vector2D> texCoords; //!< The Array that handles the VertexTextureCoordinates. 71 72 std::vector<Vector> colors; //!< The Array that handles Colors. 72 73
Note: See TracChangeset
for help on using the changeset viewer.