Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/trackManager/src/world_entities/skysphere.h @ 3498

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

orxonox/branches/trackManager: merged trunk back to tracManager R3440:3497 → 3498
merged with command:
svn merge ../trunk/ trackManager/ -r 3430:HEAD
conflicts resolved in favor of the Trunk

File size: 1.1 KB
RevLine 
[3416]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
[3412]12#ifndef _SKYSPHERE_H
13#define _SKYSPHERE_H
[3416]14
[3419]15/* INCLUDES */
[3411]16#include "p_node.h"
17
[3419]18/* FORWARD DEFINITION */
19class Material;
20class Vector;
21
[3416]22//! A Class to handle a SkySphere
[3484]23class Skysphere : public PNode
[3411]24{
[3420]25
[3416]26 public:
27  Skysphere();
[3419]28  Skysphere(char* fileName);
[3416]29  ~Skysphere();
[3419]30
[3420]31  void setRadius(float radius);
32  void setTexture(char* fileName);
33
[3419]34  void updatePosition(Vector sphereCenter);
[3416]35  void draw();
[3419]36
[3484]37 private: 
38  GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere.
39  Material *skyMaterial;    //!< A Material for the SkySphere.
40  Vector sphereCenter;      //!< Center of the SkySphere.
41  float sphereRadius;       //!< Radius of the SkySphere. This should match the frustum maximum range.
42
43
[3419]44  void initialize(char* fileName); 
[3411]45};
46
[3484]47#endif  /* _SKYSPHERE_H */
[3411]48
49
[3484]50
Note: See TracBrowser for help on using the repository browser.