Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/src/lib/graphics/importer/array.h @ 3865

Last change on this file since 3865 was 3605, checked in by bensch, 19 years ago

orxonox/trunk: merged trunk back to levelloader
merged with command:
svn merge -r 3499:HEAD trunk branches/levelloader

Conflicts in
C track_manager.h
C world_entities/player.cc
C world_entities/player.h
C world_entities/environment.h
C lib/coord/p_node.cc
C defs/debug.h
C track_manager.cc
C story_entities/campaign.h

solved in merge-favouring. It was quite easy because Chris only worked on the headers, and he didi it quite clean. Thats the spirit :)

Conflits in world.cc are a MESS: fix it

File size: 1.2 KB
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
11#include "stdincl.h"
12
13//! Array Class that handles dynamic-float arrays.
14class Array
15{
16 public:
17  Array ();
18  ~Array();
19
20  void initializeArray ();
21  void finalizeArray (void);
22  void addEntry (GLfloat entry);
23  void addEntry(GLfloat entry0, GLfloat entry1, GLfloat entry2);
24 
25  GLfloat* getArray ();
26  int getCount();
27  void debug(void);
28 private:
29  //! One entry of the Array
30  struct Entry
31  {
32    GLfloat value;  //!< The value of this Entry.
33    Entry* next;    //!< Pointer to the Next entry.
34  };
35
36  GLfloat* array;      //!< The array that will be produced when finalizing the Array.
37  int entryCount;      //!< The count of Entries in this Array.
38  bool finalized;      //!< If this variable is set to true, the Array can not be changed anymore. true if finalized, false else (initially).
39  Entry* firstEntry;   //!< Pointer to the first Entry of this Array
40  Entry* currentEntry; //!< Pointer to the current Entry of this Array. The one Entry we are working with.
41 
42 
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.