Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3797 was 3796, checked in by bensch, 21 years ago

orxonox/trunk: some simple implementation of a SkyBox

File size: 800 bytes
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
23 public:
24  SkyBox(char* fileName = NULL);
25  virtual ~SkyBox();
26
27  void setSize(float size);
28  void setTexture(char* fileName);
29
30  virtual void draw();
31
32 private: 
33  Material *material;    //!< A Material for the Skybox.
34  float size;       //!< Radius of the Skybox. This should match the frustum maximum range.
35   
36};
37
38#endif  /* _SKYBOX_H */
39
40
41
Note: See TracBrowser for help on using the repository browser.