Rev | Line | |
---|
[2946] | 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;
|
---|
[3270] | 15 | class Plane3;
|
---|
[2946] | 16 |
|
---|
[3270] | 17 |
|
---|
[2946] | 18 | /** Class that converts geometric objects to scene entities
|
---|
| 19 | */
|
---|
| 20 | class SceneEntityConverter
|
---|
| 21 | {
|
---|
| 22 | public:
|
---|
| 23 | /** Creates a scene entity.
|
---|
| 24 | */
|
---|
[2953] | 25 | SceneEntityConverter() {};
|
---|
[3270] | 26 | /** Converts a box to a scene entity
|
---|
[2946] | 27 | */
|
---|
| 28 | SceneEntity *ConvertBox(const AxisAlignedBox3 &box, Material *mat, Transform3 *trafo);
|
---|
[3270] | 29 | /** Converts a sphere to a scene entity
|
---|
[2946] | 30 | */
|
---|
| 31 | SceneEntity *ConvertSphere(float radius, float xspans, float yspans, Material *mat, Transform3 *trafo);
|
---|
[3270] | 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);
|
---|
[2946] | 41 | };
|
---|
| 42 |
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | #endif // __SCENEENTITYCONVERTER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.