Changeset 2804 in orxonox.OLD for orxonox/branches/importer/importer/array.cc
- Timestamp:
- Nov 11, 2004, 10:34:44 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/importer/importer/array.cc
r2760 r2804 12 12 void Array::createArray (unsigned int newArraySize) 13 13 { 14 if (verbose >= 2) 15 printf ("crating new Array of size %i\n", newArraySize); 14 16 array = new GLfloat [newArraySize]; 15 17 entryCount = -1; //0 means one entry … … 20 22 void Array::resizeArray (unsigned int newSize) 21 23 { 24 if (verbose >= 2) 25 printf ("Resizing Array to size %i\n", newSize); 22 26 GLfloat* newArray = new GLfloat [newSize]; 23 27 … … 34 38 void Array::finalizeArray (void) 35 39 { 40 if (verbose >= 3) 41 printf ("Finalizing array.\n"); 36 42 resizeArray (entryCount+1); 37 43 return; … … 41 47 void Array::addEntry (GLfloat entry) 42 48 { 49 if (verbose >= 3) 50 printf ("adding new Entry to Array: %f\n", entry); 43 51 entryCount++; 44 52
Note: See TracChangeset
for help on using the changeset viewer.