Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/world_entities/skybox.h @ 3878

Last change on this file since 3878 was 3807, checked in by bensch, 20 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
Line 
1/*!
2    \file skybox.h
3    \brief 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 */
16class Material;
17class Vector;
18
19//! A Class to handle a SkyBox
20class SkyBox : public WorldEntity
21{
22 public:
23  SkyBox(char* fileName = NULL);
24  virtual ~SkyBox();
25
26  void setSize(float size);
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);
29
30  virtual void draw();
31
32 private:
33  void rebuild();
34
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.
37   
38};
39
40#endif  /* _SKYBOX_H */
41
42
43
Note: See TracBrowser for help on using the repository browser.