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

Comparing libgender/entity.h (file contents):
Revision 1.10 by root, Sun Oct 3 20:14:33 2004 UTC vs.
Revision 1.11 by root, Sun Oct 3 22:46:03 2004 UTC

16 sector orig; 16 sector orig;
17 vector<octant *> o; 17 vector<octant *> o;
18 box bbox; 18 box bbox;
19 19
20 virtual void update_bbox (); 20 virtual void update_bbox ();
21 virtual void show () { world.add (orig, this); }; 21 virtual void show () { world.add (this); };
22 void hide (); 22 void hide ();
23 void display (draw_context &ctx); 23 void display (draw_context &ctx);
24 virtual void draw (draw_context &ctx) = 0; 24 virtual void draw (draw_context &ctx) = 0;
25 25
26 entity_base (); 26 entity_base ();
60 ~entity_filter (); 60 ~entity_filter ();
61}; 61};
62 62
63struct entity : entity_filter { 63struct entity : entity_filter {
64}; 64};
65
66#if 0
67struct entity_affine : entity_filter {
68 GLfloat m[4][4];
69
70 void draw (draw_context &ctx);
71};
72#endif
73 65
74struct vertex1d { 66struct vertex1d {
75 colour c; // colour 67 colour c; // colour
76 point p; // vertex 68 point p; // vertex
77}; 69};
123typedef entity_opengl2d<GL_TRIANGLE_FAN> entity_triangle_fan; 115typedef entity_opengl2d<GL_TRIANGLE_FAN> entity_triangle_fan;
124typedef entity_opengl2d<GL_QUADS> entity_quads; 116typedef entity_opengl2d<GL_QUADS> entity_quads;
125typedef entity_opengl2d<GL_QUAD_STRIP> entity_quad_strip; 117typedef entity_opengl2d<GL_QUAD_STRIP> entity_quad_strip;
126typedef entity_opengl2d<GL_POLYGON> entity_polygon; 118typedef entity_opengl2d<GL_POLYGON> entity_polygon;
127 119
120struct entity_transform : entity_filter {
121 gl_matrix m;
122
123 entity_transform ();
124
125 void update_bbox ();
126 void show ();
127 void draw (draw_context &ctx);
128};
129
128#endif 130#endif
129 131
130 132
131 133

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines