Last change
on this file since 3881 was
3807,
checked in by bensch, 19 years ago
|
orxonox/trunk: now the SkyBox is ok, there was something wrong with the transformations, copied the draw function from skysphere
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3416] | 1 | /*! |
---|
[3796] | 2 | \file skybox.h |
---|
| 3 | \brief Definition of the SkyBox, that handles the Display of an atmosphere for orxonox. |
---|
[3416] | 4 | |
---|
[3796] | 5 | A SkyBox is always centered at the current working Camera, and will only obey the cameras |
---|
[3416] | 6 | movment but not its rotation. |
---|
| 7 | */ |
---|
| 8 | |
---|
[3796] | 9 | #ifndef _SKYBOX_H |
---|
| 10 | #define _SKYBOX_H |
---|
[3416] | 11 | |
---|
[3419] | 12 | /* INCLUDES */ |
---|
[3502] | 13 | #include "world_entity.h" |
---|
[3411] | 14 | |
---|
[3419] | 15 | /* FORWARD DEFINITION */ |
---|
| 16 | class Material; |
---|
| 17 | class Vector; |
---|
| 18 | |
---|
[3807] | 19 | //! A Class to handle a SkyBox |
---|
[3796] | 20 | class SkyBox : public WorldEntity |
---|
[3411] | 21 | { |
---|
[3416] | 22 | public: |
---|
[3796] | 23 | SkyBox(char* fileName = NULL); |
---|
| 24 | virtual ~SkyBox(); |
---|
[3419] | 25 | |
---|
[3796] | 26 | void setSize(float size); |
---|
[3803] | 27 | void setTexture(const char* name, const char* extension); |
---|
| 28 | void setTextures(const char* top, const char* bottom, const char* left, const char* right, const char* front, const char* back); |
---|
[3420] | 29 | |
---|
[3807] | 30 | virtual void draw(); |
---|
| 31 | |
---|
[3801] | 32 | private: |
---|
| 33 | void rebuild(); |
---|
| 34 | |
---|
[3807] | 35 | Material **material; //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back |
---|
| 36 | float size; //!< Size of the SkyBox. This should match the frustum maximum range. |
---|
[3507] | 37 | |
---|
[3411] | 38 | }; |
---|
| 39 | |
---|
[3796] | 40 | #endif /* _SKYBOX_H */ |
---|
[3411] | 41 | |
---|
| 42 | |
---|
[3484] | 43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.