source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneEntityConverter.h @ 3270

Revision 3270, 1011 bytes checked in by mattausch, 15 years ago (diff)
Line 
1#ifndef __SCENEENTITYCONVERTER_H
2#define __SCENEENTITYCONVERTER_H
3
4#include "common.h"
5#include "AxisAlignedBox3.h"
6
7
8namespace CHCDemoEngine
9{
10
11class Material;
12class Transform3;
13class Camera;
14class SceneEntity;
15class Plane3;
16
17
18/** Class that converts geometric objects to scene entities
19*/
20class SceneEntityConverter
21{
22public:
23        /** Creates a scene entity.
24        */
25        SceneEntityConverter() {};
26        /** Converts a box to a scene entity
27        */
28        SceneEntity *ConvertBox(const AxisAlignedBox3 &box, Material *mat, Transform3 *trafo); 
29        /** Converts a sphere to a scene entity
30        */
31        SceneEntity *ConvertSphere(float radius, float xspans, float yspans, Material *mat, Transform3 *trafo);
32        /** Converts a plane to a scene entity
33        */
34        SceneEntity *ConvertPlane(const Plane3 &plane,
35                                      float xsize,
36                                                          float ysize,
37                                                          float xspans,
38                                                          float yspans,
39                                                          Material *mat,
40                                                          Transform3 *trafo);
41};
42
43}
44
45#endif // __SCENEENTITYCONVERTER_H
Note: See TracBrowser for help on using the repository browser.