Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/resources/src/world_entities/planet.h @ 7728

Last change on this file since 7728 was 7221, checked in by bensch, 19 years ago

orxonox/trunk: merged the std-branche back, it runs on windows and Linux

svn merge https://svn.orxonox.net/orxonox/branches/std . -r7202:HEAD

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#include "material.h"
12/* FORWARD DECLARATION */
13class Texture;
14
15//! A Class to handle a Planet
16class Planet : public WorldEntity
17{
18 public:
19  Planet(const TiXmlElement* root);
20
21  virtual ~Planet();
22
23  virtual void loadParams(const TiXmlElement* root);
24
25  void setSize(float size);
26  /** assumes jpg as input-format */
27  void setTexture(const std::string& textureName);
28
29
30  virtual void draw() const;
31
32
33
34 private:
35  Material        material;        //!< Materials for the Planet. sorted by number (0-5) top, bottom, left, right, front, back
36  Texture*        texture;         //!< Textures for the CubeMap.
37
38  float           size;            //!< Size of the Planet. This should match the frustum maximum range.
39  float           textureSize;     //!< this is the length of a texture (assumes a square texture)
40  char*           textureName;     //!< Name of the Texture
41
42};
43
44#endif  /* _PLANET_H */
45
46
47
Note: See TracBrowser for help on using the repository browser.