Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

BoxDrawArray.h

Go to the documentation of this file.
00001 
00002 //                            BoxDrawArray.h                                  //
00004 
00005 #ifndef BOXARRAY_H
00006 #define BOXARRAY_H
00007 
00008 #include "X3DTypes.h"
00009 #include "X3DGLTypes.h"
00010 
00011 #include <vector>
00012 
00013 namespace X3DTK {
00014 
00017 
00018 class BoxDrawArray
00019 {
00020 public:
00022   static BoxDrawArray *getInstance();
00024   void removeInstance();
00025 
00027   unsigned int getBoxSize() const;
00029   const void *getBoxVertexArrayAddress() const;
00031   const unsigned int *getBoxIndexArrayAddress() const;
00032 
00033 private:
00035   BoxDrawArray();
00036   
00037   static int _count;
00038   static BoxDrawArray *_ref;
00039   
00040   std::vector<N3F_V3F> _boxVertexArray;
00041   std::vector<unsigned int> _boxIndexArray;
00042 };
00043 
00044 }
00045 
00046 #endif

Generated on Wed May 14 10:38:09 2003 for X3DToolKit by doxygen1.3