Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10603 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.1 KB
RevLine 
[4597]1/*!
[5039]2 * @file skysphere.h
[4836]3  *  Definition of the Skysphere, that handles the Display of an atmosphere of orxonox.
[3416]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
[4836]8    @todo self-rotation
9    @todo handle reference to parent-object
[3416]10*/
11
[3412]12#ifndef _SKYSPHERE_H
13#define _SKYSPHERE_H
[3416]14
[3419]15/* INCLUDES */
[3502]16#include "world_entity.h"
[5511]17#include "glincl.h"
[3411]18
[5405]19/* FORWARD DECLARATION */
[3419]20class Material;
21class Vector;
22
[3416]23//! A Class to handle a SkySphere
[3502]24class Skysphere : public WorldEntity
[3411]25{
[9869]26  ObjectListDeclaration(Skysphere);
[3420]27
[3416]28 public:
[3763]29  Skysphere(char* fileName = NULL);
[3531]30  virtual ~Skysphere();
[3419]31
[3420]32  void setRadius(float radius);
33  void setTexture(char* fileName);
34
[5500]35  virtual void draw() const;
[3502]36
[4597]37  private:
38    void initialize(char* fileName);
39
40 private:
41  GLUquadricObj*    sphereObj;           //!< A Placeholder for the SkySphere.
42  Material*         skyMaterial;         //!< A Material for the SkySphere.
43  float             sphereRadius;        //!< Radius of the SkySphere. This should match the frustum maximum range.
[3411]44};
45
[3484]46#endif  /* _SKYSPHERE_H */
[3411]47
48
[3484]49
Note: See TracBrowser for help on using the repository browser.