Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/importer/importer/array.h @ 2809

Last change on this file since 2809 was 2809, checked in by bensch, 20 years ago

orxonox/branches/importer: test if finalized before include new array-element

File size: 553 bytes
RevLine 
[2776]1#ifndef _ARRAY_H
2#define _ARRAY_H
3
[2804]4extern int verbose;
5
[2773]6#include <GL/gl.h>
7#include <GL/glu.h>
8#include <fstream.h>
[2754]9class Array
10{
11 public:
12  Array ();
13
[2807]14  void createArray ();
[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:
[2807]23  struct Entry
24  {
25    GLfloat value;
26    Entry* next;
27  };
28
[2754]29  GLfloat* array;
[2807]30  int entryCount;
[2809]31  bool finalized;
[2807]32  Entry* firstEntry;
33  Entry* currentEntry;
34 
35 
[2754]36};
[2776]37
38#endif
Note: See TracBrowser for help on using the repository browser.