00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __mitkMeshVBO_h
00011 #define __mitkMeshVBO_h
00012
00013 #include "mitkVisualization2Includes.h"
00014
00015 class mitkMesh;
00016 class MITK_VISUALIZATION2_API mitkMeshVBO
00017 {
00018 public:
00019 unsigned m_VertVBO;
00020 unsigned m_FaceVBO;
00021 unsigned m_EdgeVBO;
00022
00023 unsigned m_VertexNum;
00024 unsigned m_FaceNum;
00025 unsigned m_EdgeNum;
00026
00027 mitkMeshVBO();
00028 ~mitkMeshVBO();
00029
00030 void BuildVBO(unsigned VertexNum, unsigned FaceNum, unsigned EdgeNum, float *Vertice, unsigned *Faces, unsigned *Edges);
00031 void BuildVBO(mitkMesh* mesh);
00032 void RenderVBO();
00033 };
00034
00035
00036 #endif