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

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 "GL_SceneGraphTypes.h"
00009 
00010 #include <vector>
00011 
00012 namespace X3DTK {
00013 namespace GL {
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 
00047 #endif

Generated on Mon Jan 19 10:32:03 2004 for X3DToolKit by doxygen1.2.18