Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/importer: now it works on Windows too. The Problem was, that malloc wrote into the wrong memory holes. thats why I rewrote the whole code.
This Problem may araise again, if multiple Models are imported in Windows, because the malloc function is still active.

File size: 535 bytes
Line 
1#ifndef _ARRAY_H
2#define _ARRAY_H
3
4extern int verbose;
5
6#include <GL/gl.h>
7#include <GL/glu.h>
8#include <fstream.h>
9class Array
10{
11 public:
12  Array ();
13
14  void createArray ();
15  void finalizeArray (void);
16  void addEntry (GLfloat entry);
17  void addEntry(GLfloat entry0, GLfloat entry1, GLfloat entry2);
18 
19  GLfloat* getArray ();
20  int getCount();
21  void debug(void);
22 private:
23  struct Entry
24  {
25    GLfloat value;
26    Entry* next;
27  };
28
29  GLfloat* array;
30  int entryCount;
31  Entry* firstEntry;
32  Entry* currentEntry;
33 
34 
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.