Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/src/world_entities/skysphere.h @ 3605

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

orxonox/trunk: merged trunk back to levelloader
merged with command:
svn merge -r 3499:HEAD trunk branches/levelloader

Conflicts in
C track_manager.h
C world_entities/player.cc
C world_entities/player.h
C world_entities/environment.h
C lib/coord/p_node.cc
C defs/debug.h
C track_manager.cc
C story_entities/campaign.h

solved in merge-favouring. It was quite easy because Chris only worked on the headers, and he didi it quite clean. Thats the spirit :)

Conflits in world.cc are a MESS: fix it

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 "p_node.h"
17#include "world_entity.h"
18
19/* FORWARD DEFINITION */
20class Material;
21class Vector;
22
23//! A Class to handle a SkySphere
24class Skysphere : public WorldEntity
25{
26
27 public:
28  Skysphere();
29  Skysphere(char* fileName);
30  virtual ~Skysphere();
31  void destroy();
32
33  void setRadius(float radius);
34  void setTexture(char* fileName);
35
36  virtual void draw();
37
38 private: 
39  GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere.
40  Material *skyMaterial;    //!< A Material for the SkySphere.
41  float sphereRadius;       //!< Radius of the SkySphere. This should match the frustum maximum range.
42   
43  void initialize(char* fileName); 
44};
45
46#endif  /* _SKYSPHERE_H */
47
48
49
Note: See TracBrowser for help on using the repository browser.