Changeset 5390 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Oct 16, 2005, 2:25:22 AM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/model.cc
r5308 r5390 162 162 this->scaleFactor = 1; 163 163 164 this->vertices = new Array<GLfloat>();165 this->vTexture = new Array<GLfloat>();166 this->normals = new Array<GLfloat>();164 this->vertices = new tArray<GLfloat>(); 165 this->vTexture = new tArray<GLfloat>(); 166 this->normals = new tArray<GLfloat>(); 167 167 168 168 this->materialList = new tList<ModelMaterial>; -
trunk/src/lib/graphics/importer/model.h
r5321 r5390 15 15 16 16 // FORWARD DEFINITION // 17 template<class T> class Array;17 template<class T> class tArray; 18 18 template<class T> class tList; 19 19 … … 184 184 unsigned int faceCount; //!< A modelwide Counter for the faces 185 185 unsigned int triangleCount; //!< Number of triangles >= faceCount 186 Array<GLfloat>*vertices; //!< The Array that handles the Vertices.187 Array<GLfloat>*normals; //!< The Array that handles the Normals.188 Array<GLfloat>*vTexture; //!< The Array that handles the VertexTextureCoordinates.186 tArray<GLfloat>* vertices; //!< The Array that handles the Vertices. 187 tArray<GLfloat>* normals; //!< The Array that handles the Normals. 188 tArray<GLfloat>* vTexture; //!< The Array that handles the VertexTextureCoordinates. 189 189 sTriangleExt* triangles; //!< The Array of triangles in the abstract_model.h style 190 190 -
trunk/src/lib/graphics/shader.cc
r5364 r5390 126 126 127 127 128 Array<char*>* program = fileReadArray(fileName);128 tArray<char*>* program = fileReadArray(fileName); 129 129 if (program == NULL) 130 130 return false; … … 190 190 191 191 192 Array<char*>* Shader::fileReadArray(const char* fileName)192 tArray<char*>* Shader::fileReadArray(const char* fileName) 193 193 { 194 194 FILE* stream; //< The stream we use to read the file. … … 199 199 return NULL; 200 200 } 201 Array<char*>* file = newArray<char*>;201 tArray<char*>* file = new tArray<char*>; 202 202 203 203 char lineBuffer[PARSELINELENGHT]; -
trunk/src/lib/graphics/shader.h
r5323 r5390 10 10 #include "glincl.h" 11 11 12 template<class T> class Array;12 template<class T> class tArray; 13 13 14 14 typedef enum … … 38 38 39 39 char* fileRead(const char* fileName); 40 Array<char*>* fileReadArray(const char* fileName);40 tArray<char*>* fileReadArray(const char* fileName); 41 41 42 42 static bool checkShaderAbility();
Note: See TracChangeset
for help on using the changeset viewer.