00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef U2D_DISPLAY_SET_H
00024 #define U2D_DISPLAY_SET_H
00025
00026 #include <GL/gl.h>
00027 #include <vector>
00028
00029 using namespace std;
00030
00031 class u2d_Display_Set {
00032 public:
00033 u2d_Display_Set();
00034 ~u2d_Display_Set();
00035
00036 void Set_Coord_Per_Vertex(GLint m_coord_per_vertex);
00037 GLint Get_Coord_Per_Vertex();
00038 void Push_Coord(GLfloat a);
00039 void Push_Coord(GLfloat a, GLfloat b);
00040 void Push_Coord(GLfloat a, GLfloat b, GLfloat c);
00041 GLsizei Get_Vertex_Count();
00042 GLfloat *Get_Vertex_Array();
00043
00044 void Set_Coord_Per_Topology(GLint m_coord_per_topology);
00045 GLint Get_Coord_Per_Topology();
00046 void Push_Topology_Coord(GLfloat a);
00047 void Push_Topology_Coord(GLfloat a, GLfloat b);
00048 void Push_Topology_Coord(GLfloat a, GLfloat b, GLfloat c);
00049 GLsizei Get_Topology_Count();
00050 GLfloat *Get_Topology_Array();
00051
00052
00053
00054 GLuint display_list;
00055 GLenum vertex_type;
00056 GLenum topology_type;
00057 GLint red;
00058 GLint green;
00059 GLint blue;
00060 GLfloat line_width;
00061
00062 private:
00063 GLint coord_per_vertex;
00064 GLint coord_per_topology;
00065
00066 vector<GLfloat> vertex_array;
00067 vector<GLfloat> topology;
00068 };
00069
00070
00071 #endif