Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/world_entities/skysphere.h @ 3739

Last change on this file since 3739 was 3608, checked in by patrick, 20 years ago

orxonox/trunk: now there is a real speedup in compiling time when dependencies are modified: just realy only includes, what is needed. Byside the speedup, there is more overview! never add an orxonox class to stdincl.h if it doesn't have to be

File size: 1.0 KB
Line 
1/*!
2    \file skysphere.h
3    \brief Definition of the Skysphere, that handles the Display of an atmosphere of orxonox.
4
5    A SkySphere is always centered at the current working Camera, and will only obey the cameras
6    movment but not its rotation.
7
8    \todo self-rotation
9    \todo handle reference to parent-object
10*/
11
12#ifndef _SKYSPHERE_H
13#define _SKYSPHERE_H
14
15/* INCLUDES */
16#include "world_entity.h"
17
18/* FORWARD DEFINITION */
19class Material;
20class Vector;
21
22//! A Class to handle a SkySphere
23class Skysphere : public WorldEntity
24{
25
26 public:
27  Skysphere();
28  Skysphere(char* fileName);
29  virtual ~Skysphere();
30  void destroy();
31
32  void setRadius(float radius);
33  void setTexture(char* fileName);
34
35  virtual void draw();
36
37 private: 
38  GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere.
39  Material *skyMaterial;    //!< A Material for the SkySphere.
40  float sphereRadius;       //!< Radius of the SkySphere. This should match the frustum maximum range.
41   
42  void initialize(char* fileName); 
43};
44
45#endif  /* _SKYSPHERE_H */
46
47
48
Note: See TracBrowser for help on using the repository browser.