- Timestamp:
- Oct 16, 2005, 2:25:22 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 6 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(); -
trunk/src/lib/util/array.h
r5388 r5390 16 16 /*! 17 17 @file array.h 18 @brief Contains the Array Class that handles arrays of classes.18 @brief Contains the tArray Class that handles arrays of classes. 19 19 this class creates a Array of a semi-Dynamic length. 20 20 beware, that after finalizing the array may not be resized again. … … 27 27 using namespace std; 28 28 29 //! Array Class that handles dynamic-type arrays.30 template<class T> class Array29 //! tArray Class that handles dynamic-type arrays. 30 template<class T> class tArray 31 31 { 32 32 public: 33 Array ();34 ~ Array();33 tArray (); 34 ~tArray(); 35 35 36 36 void finalizeArray (); … … 67 67 */ 68 68 template<class T> 69 Array<T>::Array ()70 { 71 PRINTF(5)("crating new Array\n");69 tArray<T>::tArray () 70 { 71 PRINTF(5)("crating new tArray\n"); 72 72 this->firstEntry = new Entry; 73 73 this->firstEntry->next =NULL; … … 78 78 79 79 template<class T> 80 const T Array<T>::getEntry(unsigned int number) const80 const T tArray<T>::getEntry(unsigned int number) const 81 81 { 82 82 if (this->finalized && number < this->entryCount) … … 89 89 */ 90 90 template<class T> 91 Array<T>::~Array()91 tArray<T>::~tArray() 92 92 { 93 93 PRINTF(5)("deleting array\n"); … … 112 112 */ 113 113 template<class T> 114 void Array<T>::finalizeArray ()114 void tArray<T>::finalizeArray () 115 115 { 116 116 if (this->finalized) … … 142 142 */ 143 143 template<class T> 144 void Array<T>::addEntry (T entry)144 void tArray<T>::addEntry (T entry) 145 145 { 146 146 if (!this->finalized) … … 162 162 */ 163 163 template<class T> 164 void Array<T>::addEntry (T entry0, T entry1, T entry2)164 void tArray<T>::addEntry (T entry0, T entry1, T entry2) 165 165 { 166 166 this->addEntry(entry0); … … 176 176 */ 177 177 template<class T> 178 int Array<T>::getIndex(T* entry) const178 int tArray<T>::getIndex(T* entry) const 179 179 { 180 180 if( unlikely(this->finalized == false)) … … 193 193 */ 194 194 template<class T> 195 void Array<T>::debug () const195 void tArray<T>::debug () const 196 196 { 197 197 PRINT(0)("entryCount=%i, address=%p\n", this->entryCount, this->array); -
trunk/src/story_entities/world.cc
r5389 r5390 1 2 3 1 /* 4 2 orxonox - the future of 3D-vertical-scrollers … … 14 12 main-programmer: Patrick Boenzli 15 13 co-programmer: Christian Meyer 14 co-programmer: Benjamin Grauer 16 15 */ 17 16
Note: See TracChangeset
for help on using the changeset viewer.