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