source:
orxonox.OLD/orxonox/branches/importer/src/array.h
@
2807
| Last change on this file since 2807 was 2795, checked in by bensch, 21 years ago | |
|---|---|
| File size: 541 bytes | |
| Rev | Line | |
|---|---|---|
| [2776] | 1 | #ifndef _ARRAY_H |
| 2 | #define _ARRAY_H | |
| 3 | ||
| [2773] | 4 | #include <GL/gl.h> |
| 5 | #include <GL/glu.h> | |
| 6 | #include <fstream.h> | |
| [2754] | 7 | class Array |
| 8 | { | |
| 9 | public: | |
| 10 | Array (); | |
| [2758] | 11 | Array (unsigned int arraySize); |
| [2754] | 12 | |
| [2758] | 13 | void createArray (unsigned int newArraySize); |
| 14 | void resizeArray (unsigned int newSize); | |
| [2754] | 15 | void finalizeArray (void); |
| 16 | void addEntry (GLfloat entry); | |
| 17 | void addEntry(GLfloat entry0, GLfloat entry1, GLfloat entry2); | |
| 18 | ||
| 19 | GLfloat* getArray (); | |
| [2760] | 20 | int getCount(); |
| [2758] | 21 | void debug(void); |
| [2754] | 22 | private: |
| 23 | GLfloat* array; | |
| [2758] | 24 | unsigned int arraySize; |
| 25 | unsigned int entryCount; | |
| [2754] | 26 | |
| 27 | }; | |
| [2776] | 28 | |
| 29 | #endif |
Note: See TracBrowser
for help on using the repository browser.










