Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/2d-recalc/src/world_entities/skybox.h @ 5822

Last change on this file since 5822 was 5357, checked in by bensch, 19 years ago

orxonox/trunk: some minor cleanup, of the mess i made with AutoMake-sh

File size: 1.2 KB
Line 
1/*!
2 * @file skybox.h
3 *  Definition of the SkyBox, that handles the Display of an atmosphere for orxonox.
4 *
5 * A SkyBox is always centered at the current working Camera, and will only obey the cameras
6 * movment but not its rotation.
7*/
8
9#ifndef _SKYBOX_H
10#define _SKYBOX_H
11
12/* INCLUDES */
13#include "world_entity.h"
14
15/* FORWARD DEFINITION */
16
17//! A Class to handle a SkyBox
18class SkyBox : public WorldEntity
19{
20 public:
21  SkyBox(const char* fileName = NULL);
22  SkyBox(const TiXmlElement* root);
23
24  virtual ~SkyBox();
25
26  void init();
27  void preInit();
28
29  void loadParams(const TiXmlElement* root);
30
31  void postInit();
32
33
34  void setSize(float size);
35  /** assumes jpg as input-format */
36  void setTexture(const char* name) { this->setTextureAndType (name, "jpg"); };
37
38  void setTextureAndType(const char* name, const char* extension);
39  void setTextures(const char* top, const char* bottom, const char* left,
40                   const char* right, const char* front, const char* back);
41
42 private:
43  void rebuild();
44
45  Material**      material;        //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back
46  float           size;            //!< Size of the SkyBox. This should match the frustum maximum range.
47
48};
49
50#endif  /* _SKYBOX_H */
51
52
53
Note: See TracBrowser for help on using the repository browser.