Changeset 2809 in orxonox.OLD for orxonox/branches
- Timestamp:
- Nov 11, 2004, 2:17:48 PM (20 years ago)
- Location:
- orxonox/branches/importer/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/importer/importer/array.cc
r2808 r2809 13 13 firstEntry->next =NULL; 14 14 currentEntry=firstEntry; 15 finalized = false; 15 16 entryCount = 0; //0 means one entry 16 17 return; … … 29 30 walker = walker->next; 30 31 } 32 finalized = true; 31 33 return; 32 34 } … … 35 37 void Array::addEntry (GLfloat entry) 36 38 { 37 if (verbose >= 3) 38 printf ("adding new Entry to Array: %f\n", entry); 39 40 entryCount++; 41 currentEntry->value = entry; 42 currentEntry->next = new Entry; 43 currentEntry = currentEntry->next; 44 currentEntry->next = NULL; 45 39 if (!finalized) 40 { 41 if (verbose >= 3) 42 printf ("adding new Entry to Array: %f\n", entry); 43 44 entryCount++; 45 currentEntry->value = entry; 46 currentEntry->next = new Entry; 47 currentEntry = currentEntry->next; 48 currentEntry->next = NULL; 49 } 50 else 51 if (verbose >= 1) 52 printf ("adding failed, because list has been finalized\n"); 46 53 } 47 54 -
orxonox/branches/importer/importer/array.h
r2807 r2809 29 29 GLfloat* array; 30 30 int entryCount; 31 bool finalized; 31 32 Entry* firstEntry; 32 33 Entry* currentEntry;
Note: See TracChangeset
for help on using the changeset viewer.