Line | |
---|
1 | #ifndef __SCENEENTITYCONVERTER_H
|
---|
2 | #define __SCENEENTITYCONVERTER_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include "AxisAlignedBox3.h"
|
---|
6 |
|
---|
7 |
|
---|
8 | namespace CHCDemoEngine
|
---|
9 | {
|
---|
10 |
|
---|
11 | class Material;
|
---|
12 | class Transform3;
|
---|
13 | class Camera;
|
---|
14 | class SceneEntity;
|
---|
15 | class Plane3;
|
---|
16 |
|
---|
17 |
|
---|
18 | /** Class that converts geometric objects to scene entities
|
---|
19 | */
|
---|
20 | class SceneEntityConverter
|
---|
21 | {
|
---|
22 | public:
|
---|
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.