|
Last change
on this file since 4652 was
3699,
checked in by dave, 21 years ago
|
|
branches/shadows: hab des skysphere.cc vergessen
|
|
File size:
833 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 | |
|---|
| 16 | #include "importer/material.h" |
|---|
| 17 | #include "p_node.h" |
|---|
| 18 | #include "world_entity.h" |
|---|
| 19 | |
|---|
| 20 | //! A Class to handle a SkySphere |
|---|
| 21 | class Skysphere: public PNode |
|---|
| 22 | { |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 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 | |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | }; |
|---|
| 46 | |
|---|
| 47 | #endif |
|---|
| 48 | |
|---|
| 49 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.