00001
00002
00003
00005
00006
00011
00016
00021
00023
00024 #ifndef BOXARRAY_H
00025 #define BOXARRAY_H
00026
00027 #include "X3DTypes.h"
00028 #include "X3DGLTypes.h"
00029
00030 #include <vector>
00031
00032 namespace X3DTK {
00033 namespace GL {
00034
00037
00038 class BoxDrawArray
00039 {
00040 public:
00042 static BoxDrawArray *getInstance();
00044 void removeInstance();
00045
00047 unsigned int getBoxSize() const;
00049 const void *getBoxVertexArrayAddress() const;
00051 const unsigned int *getBoxIndexArrayAddress() const;
00052
00053 private:
00055 BoxDrawArray();
00056
00057 static int _count;
00058 static BoxDrawArray *_ref;
00059
00060 std::vector<N3F_V3F> _boxVertexArray;
00061 std::vector<unsigned int> _boxIndexArray;
00062 };
00063
00064 }
00065 }
00066
00067 #endif