… | |
… | |
183 | |
183 | |
184 | entity (geometry *g = 0); |
184 | entity (geometry *g = 0); |
185 | ~entity (); |
185 | ~entity (); |
186 | }; |
186 | }; |
187 | |
187 | |
|
|
188 | struct entity_moveable : entity |
|
|
189 | { |
|
|
190 | vec3 v; |
|
|
191 | entity_moveable (geometry *g = 0) : entity (g) { } |
|
|
192 | |
|
|
193 | void perform_step (double t); |
|
|
194 | }; |
|
|
195 | |
188 | struct entity_light : entity |
196 | struct entity_light : entity |
189 | { |
197 | { |
190 | light *lview; |
198 | light *lview; |
|
|
199 | }; |
|
|
200 | |
|
|
201 | ///////////////////////////////////////////////////////////////////////////// |
|
|
202 | // not the final API(!) |
|
|
203 | |
|
|
204 | struct skybox |
|
|
205 | { |
|
|
206 | texture *tex[6]; |
|
|
207 | |
|
|
208 | skybox ( |
|
|
209 | const char *left, |
|
|
210 | const char *front, |
|
|
211 | const char *right, |
|
|
212 | const char *back, |
|
|
213 | const char *top, |
|
|
214 | const char *bottom |
|
|
215 | ); |
|
|
216 | |
|
|
217 | ~skybox (); |
|
|
218 | |
|
|
219 | void draw (view &ctx); |
191 | }; |
220 | }; |
192 | |
221 | |
193 | ///////////////////////////////////////////////////////////////////////////// |
222 | ///////////////////////////////////////////////////////////////////////////// |
194 | // |
223 | // |
195 | // VERY EXPERIMENTAL HEIGHTMAP |
224 | // VERY EXPERIMENTAL HEIGHTMAP |