| 
                Last change
                  on this file since 4944 was
                  4836,
                  checked in by bensch, 20 years ago
           | 
        
        
          | 
               
orxonox/trunk: renamed all the \param → @param and so on in Doxygen tags. 
Thanks a lot to the kDevelop team. this took since the last commit   
 
           | 
        
        | 
            File size:
            1.1 KB
           | 
      
      
        
  | Line |   | 
|---|
| 1 | /*! | 
|---|
| 2 |     \file skysphere.h | 
|---|
| 3 |   *  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 */ | 
|---|
| 19 | class Material; | 
|---|
| 20 | class Vector; | 
|---|
| 21 |  | 
|---|
| 22 | //! A Class to handle a SkySphere | 
|---|
| 23 | class Skysphere : public WorldEntity | 
|---|
| 24 | { | 
|---|
| 25 |  | 
|---|
| 26 |  public: | 
|---|
| 27 |   Skysphere(char* fileName = NULL); | 
|---|
| 28 |   virtual ~Skysphere(); | 
|---|
| 29 |   void destroy(); | 
|---|
| 30 |  | 
|---|
| 31 |   void setRadius(float radius); | 
|---|
| 32 |   void setTexture(char* fileName); | 
|---|
| 33 |  | 
|---|
| 34 |   virtual void draw(); | 
|---|
| 35 |  | 
|---|
| 36 |   private: | 
|---|
| 37 |     void initialize(char* fileName); | 
|---|
| 38 |  | 
|---|
| 39 |  private: | 
|---|
| 40 |   GLUquadricObj*    sphereObj;           //!< A Placeholder for the SkySphere. | 
|---|
| 41 |   Material*         skyMaterial;         //!< A Material for the SkySphere. | 
|---|
| 42 |   float             sphereRadius;        //!< Radius of the SkySphere. This should match the frustum maximum range. | 
|---|
| 43 | }; | 
|---|
| 44 |  | 
|---|
| 45 | #endif  /* _SKYSPHERE_H */ | 
|---|
| 46 |  | 
|---|
| 47 |  | 
|---|
| 48 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.