Last change
on this file since 3500 was
3416,
checked in by bensch, 20 years ago
|
orxonox/branches/dave: injected Doxygen-tags
|
File size:
833 bytes
|
Rev | Line | |
---|
[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 | |
---|
| 15 | |
---|
[3411] | 16 | #include "importer/material.h" |
---|
| 17 | #include "p_node.h" |
---|
| 18 | #include "world_entity.h" |
---|
| 19 | |
---|
[3416] | 20 | //! A Class to handle a SkySphere |
---|
[3411] | 21 | class Skysphere: public PNode |
---|
| 22 | { |
---|
| 23 | |
---|
| 24 | |
---|
[3416] | 25 | private: |
---|
| 26 | GLUquadricObj *sphereObj; |
---|
| 27 | float a,b,c; //!< Parameters to hold the Position of the SkySphere |
---|
| 28 | Material *sky; //!< A Material for the Sky |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | public: |
---|
| 32 | Skysphere(); |
---|
| 33 | ~Skysphere(); |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | void updatePosition(float x,float y,float z); |
---|
| 39 | void draw(); |
---|
| 40 | |
---|
[3411] | 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | }; |
---|
| 46 | |
---|
| 47 | #endif |
---|
| 48 | |
---|
| 49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.