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

Comparing libgender/entity.h (file contents):
Revision 1.16 by root, Mon Oct 4 23:44:53 2004 UTC vs.
Revision 1.17 by root, Tue Oct 5 03:39:47 2004 UTC

116typedef entity_opengl2d<GL_QUAD_STRIP> entity_quad_strip; 116typedef entity_opengl2d<GL_QUAD_STRIP> entity_quad_strip;
117typedef entity_opengl2d<GL_POLYGON> entity_polygon; 117typedef entity_opengl2d<GL_POLYGON> entity_polygon;
118 118
119struct entity_transform : entity_filter { 119struct entity_transform : entity_filter {
120protected: 120protected:
121 gl_matrix m; 121 matrix m;
122 void renormalize (); 122 void renormalize ();
123public: 123public:
124 124
125 entity_transform (); 125 entity_transform ();
126 126
127 void update (); 127 void update ();
128 void show (); 128 void show ();
129 void draw (draw_context &ctx); 129 void draw (draw_context &ctx);
130 void set_matrix (const gl_matrix &xfrm); 130 void set_matrix (const matrix &xfrm);
131 void update (const gl_matrix &xfrm); 131 void update (const matrix &xfrm);
132}; 132};
133 133
134struct entity_anim : entity_transform { 134struct entity_anim : entity_transform {
135 GLfloat vx, vy, vz; 135 GLfloat vx, vy, vz;
136 void draw (draw_context &ctx); 136 void draw (draw_context &ctx);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines