Last change
on this file since 3891 was
3763,
checked in by bensch, 19 years ago
|
orxonox/trunk: skySphere now added to WorldEntity-List
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3416] | 1 | /*! |
---|
| 2 | \file skysphere.h |
---|
| 3 | \brief Definition of the Skysphere, that handles the Display of an atmosphere of orxonox. |
---|
| 4 | |
---|
| 5 | A SkySphere is always centered at the current working Camera, and will only obey the cameras |
---|
| 6 | movment but not its rotation. |
---|
| 7 | |
---|
| 8 | \todo self-rotation |
---|
| 9 | \todo handle reference to parent-object |
---|
| 10 | */ |
---|
| 11 | |
---|
[3412] | 12 | #ifndef _SKYSPHERE_H |
---|
| 13 | #define _SKYSPHERE_H |
---|
[3416] | 14 | |
---|
[3419] | 15 | /* INCLUDES */ |
---|
[3502] | 16 | #include "world_entity.h" |
---|
[3411] | 17 | |
---|
[3419] | 18 | /* FORWARD DEFINITION */ |
---|
| 19 | class Material; |
---|
| 20 | class Vector; |
---|
| 21 | |
---|
[3416] | 22 | //! A Class to handle a SkySphere |
---|
[3502] | 23 | class Skysphere : public WorldEntity |
---|
[3411] | 24 | { |
---|
[3420] | 25 | |
---|
[3416] | 26 | public: |
---|
[3763] | 27 | Skysphere(char* fileName = NULL); |
---|
[3531] | 28 | virtual ~Skysphere(); |
---|
| 29 | void destroy(); |
---|
[3419] | 30 | |
---|
[3420] | 31 | void setRadius(float radius); |
---|
| 32 | void setTexture(char* fileName); |
---|
| 33 | |
---|
[3502] | 34 | virtual void draw(); |
---|
| 35 | |
---|
[3484] | 36 | private: |
---|
| 37 | GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere. |
---|
| 38 | Material *skyMaterial; //!< A Material for the SkySphere. |
---|
| 39 | float sphereRadius; //!< Radius of the SkySphere. This should match the frustum maximum range. |
---|
[3507] | 40 | |
---|
[3419] | 41 | void initialize(char* fileName); |
---|
[3411] | 42 | }; |
---|
| 43 | |
---|
[3484] | 44 | #endif /* _SKYSPHERE_H */ |
---|
[3411] | 45 | |
---|
| 46 | |
---|
[3484] | 47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.