Last change
on this file since 4158 was
4139,
checked in by patrick, 19 years ago
|
orxonox/branches/md2_loader: merged trunk into branche using: svn merge ../trunk/ md2_loader -r 4063:HEAD
|
File size:
1.3 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); |
---|
[4010] | 24 | SkyBox(TiXmlElement* root); |
---|
| 25 | |
---|
[3796] | 26 | virtual ~SkyBox(); |
---|
[3419] | 27 | |
---|
[4012] | 28 | void preInit(void); |
---|
| 29 | void postInit(void); |
---|
[4010] | 30 | |
---|
[4012] | 31 | |
---|
[3796] | 32 | void setSize(float size); |
---|
[3803] | 33 | void setTexture(const char* name, const char* extension); |
---|
| 34 | void setTextures(const char* top, const char* bottom, const char* left, const char* right, const char* front, const char* back); |
---|
[3420] | 35 | |
---|
[3807] | 36 | virtual void draw(); |
---|
| 37 | |
---|
[3801] | 38 | private: |
---|
| 39 | void rebuild(); |
---|
| 40 | |
---|
[4139] | 41 | Model* skyModel; //!< A Model for the Sky. This must not be the same as the Model from WorldEntity, because it is not alocated through the ResourceManager. |
---|
[3807] | 42 | Material **material; //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back |
---|
| 43 | float size; //!< Size of the SkyBox. This should match the frustum maximum range. |
---|
[3507] | 44 | |
---|
[3411] | 45 | }; |
---|
| 46 | |
---|
[3796] | 47 | #endif /* _SKYBOX_H */ |
---|
[3411] | 48 | |
---|
| 49 | |
---|
[3484] | 50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.