Last change
on this file since 7128 was
6959,
checked in by patrick, 19 years ago
|
trunk: merged network branche into trunk
|
File size:
1.1 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file planet.h |
---|
3 | * Definition of the Planet, that handles the Display of an atmosphere for orxonox. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _PLANET_H |
---|
7 | #define _PLANET_H |
---|
8 | |
---|
9 | /* INCLUDES */ |
---|
10 | #include "world_entity.h" |
---|
11 | |
---|
12 | /* FORWARD DECLARATION */ |
---|
13 | class Material; |
---|
14 | class Texture; |
---|
15 | |
---|
16 | //! A Class to handle a Planet |
---|
17 | class Planet : public WorldEntity |
---|
18 | { |
---|
19 | public: |
---|
20 | Planet(const TiXmlElement* root); |
---|
21 | |
---|
22 | virtual ~Planet(); |
---|
23 | |
---|
24 | virtual void loadParams(const TiXmlElement* root); |
---|
25 | |
---|
26 | void setSize(float size); |
---|
27 | /** assumes jpg as input-format */ |
---|
28 | void setTexture(const char* textureName); |
---|
29 | |
---|
30 | |
---|
31 | virtual void draw() const; |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | private: |
---|
36 | Material* material; //!< Materials for the Planet. sorted by number (0-5) top, bottom, left, right, front, back |
---|
37 | Texture* texture; //!< Textures for the CubeMap. |
---|
38 | |
---|
39 | float size; //!< Size of the Planet. This should match the frustum maximum range. |
---|
40 | float textureSize; //!< this is the length of a texture (assumes a square texture) |
---|
41 | char* textureName; //!< Name of the Texture |
---|
42 | |
---|
43 | }; |
---|
44 | |
---|
45 | #endif /* _PLANET_H */ |
---|
46 | |
---|
47 | |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.