Changeset 4577 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/array.cc
- Timestamp:
- Jun 10, 2005, 2:32:13 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/array.cc
r4109 r4577 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 17 17 18 18 #include "array.h" 19 20 #include "debug.h" 19 21 20 22 /** … … 66 68 void Array::finalizeArray (void) 67 69 { 68 PRINTF(4)("Finalizing array. Length: %i\n", entryCount); 70 PRINTF(4)("Finalizing array. Length: %i\n", entryCount); 69 71 // if ((array = (GLfloat*)malloc( entryCount* sizeof(GLfloat))) == NULL) 70 72 if (!(this->array = new GLfloat [this->entryCount])) … … 90 92 { 91 93 PRINTF(5)("adding new Entry to Array: %f\n", entry); 92 94 93 95 this->currentEntry->value = entry; 94 96 this->currentEntry->next = new Entry; … … 97 99 ++this->entryCount; 98 100 } 99 else 101 else 100 102 PRINTF(2)("adding failed, because list has been finalized\n"); 101 103 } … … 110 112 this->addEntry (entry2); 111 113 } 112 114 113 115 /** 114 116 \brief Simple debug info about the Array
Note: See TracChangeset
for help on using the changeset viewer.