00001 #ifndef X3DTK_GL_BOXARRAY_H 00002 #define X3DTK_GL_BOXARRAY_H 00003 00004 #include "GL_SceneGraphTypes.h" 00005 00006 #include <vector> 00007 00008 namespace X3DTK { 00009 namespace GL { 00010 00020 class BoxDrawArray 00021 { 00022 public: 00024 static BoxDrawArray *getInstance(); 00026 void removeInstance(); 00027 00029 unsigned int getBoxSize() const; 00031 const void *getBoxVertexArrayAddress() const; 00033 const unsigned int *getBoxIndexArrayAddress() const; 00034 00035 private: 00037 BoxDrawArray(); 00038 00039 static int _count; 00040 static BoxDrawArray *_ref; 00041 00042 std::vector<N3F_V3F> _boxVertexArray; 00043 std::vector<unsigned int> _boxIndexArray; 00044 }; 00045 00046 } 00047 } 00048 00049 #endif