Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/skysphere.h @ 3419

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

orxonox/trunk: copied dave's SkySphere into the Trunk
done it with svn copy, and implemented the Class into the world.cc
it works perfectly

File size: 863 bytes
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
18/* FORWARD DEFINITION */
19class Material;
20class Vector;
21
22//! A Class to handle a SkySphere
23class Skysphere: public PNode
24{
25 private: 
26  GLUquadricObj *sphereObj;
27  Vector sphereCenter; //!< Center of the Skysphere
28  Material *sky;       //!< A Material for the Sky
29 
30 public:
31  Skysphere();
32  Skysphere(char* fileName);
33  ~Skysphere();
34
35  void updatePosition(Vector sphereCenter);
36  void draw();
37
38 private:
39  void initialize(char* fileName); 
40};
41
42#endif
43
44
Note: See TracBrowser for help on using the repository browser.