ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/entity.h
(Generate patch)

Comparing libgender/entity.h (file contents):
Revision 1.8 by root, Sun Oct 3 05:10:45 2004 UTC vs.
Revision 1.9 by root, Sun Oct 3 05:53:09 2004 UTC

101}; 101};
102 102
103template<GLenum type> 103template<GLenum type>
104struct entity_opengl2d : entity_opengl, vector<vertex2d> { 104struct entity_opengl2d : entity_opengl, vector<vertex2d> {
105 material m; 105 material m;
106 GLuint list;
106 107
107 void update_bbox (); 108 void update_bbox ();
108 void show (const sector &sec); 109 void show (const sector &sec);
109 void draw (draw_context &ctx); 110 void draw (draw_context &ctx);
111
112 entity_opengl2d ()
113 : list(0)
114 {
115 }
116
117 ~entity_opengl2d ()
118 {
119 if (list)
120 glDeleteLists (list, 1);
121 }
110}; 122};
111 123
112typedef entity_opengl1d<GL_POINTS> entity_points; 124typedef entity_opengl1d<GL_POINTS> entity_points;
113typedef entity_opengl1d<GL_LINES> entity_lines; 125typedef entity_opengl1d<GL_LINES> entity_lines;
114typedef entity_opengl1d<GL_LINE_STRIP> entity_line_strip; 126typedef entity_opengl1d<GL_LINE_STRIP> entity_line_strip;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines