Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/planet.h @ 9869

Last change on this file since 9869 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

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