Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/sound/importer/array.h @ 3471

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

orxonox/branches/sound: merged Trunk back into sound. and included all headers for real into the configure.ac-script.

File size: 855 bytes
Line 
1/*!
2  \file array.h
3  \brief Contains the Array Class that handles float arrays.
4  this class creates a Array of a semi-Dynamic length.
5  beware, that after finalizing the array may not be resized again.
6*/
7
8#ifndef _ARRAY_H
9#define _ARRAY_H
10
11extern int verbose; //!< will be obsolete soon
12
13#include <GL/gl.h>
14#include <GL/glu.h>
15#include <fstream>
16
17
18//! Array Class that handles dynamic-float arrays.
19class Array
20{
21 public:
22  Array ();
23  ~Array();
24
25  void initializeArray ();
26  void finalizeArray (void);
27  void addEntry (GLfloat entry);
28  void addEntry(GLfloat entry0, GLfloat entry1, GLfloat entry2);
29 
30  GLfloat* getArray ();
31  int getCount();
32  void debug(void);
33 private:
34  struct Entry
35  {
36    GLfloat value;
37    Entry* next;
38  };
39
40  GLfloat* array;
41  int entryCount;
42  bool finalized;
43  Entry* firstEntry;
44  Entry* currentEntry;
45 
46 
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.