… | |
… | |
116 | typedef entity_opengl2d<GL_QUAD_STRIP> entity_quad_strip; |
116 | typedef entity_opengl2d<GL_QUAD_STRIP> entity_quad_strip; |
117 | typedef entity_opengl2d<GL_POLYGON> entity_polygon; |
117 | typedef entity_opengl2d<GL_POLYGON> entity_polygon; |
118 | |
118 | |
119 | struct entity_transform : entity_filter { |
119 | struct entity_transform : entity_filter { |
120 | protected: |
120 | protected: |
121 | gl_matrix m; |
121 | matrix m; |
122 | void renormalize (); |
122 | void renormalize (); |
123 | public: |
123 | public: |
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 | |
134 | struct entity_anim : entity_transform { |
134 | struct 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); |