Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 6943 was 6634, checked in by bensch, 19 years ago

orxonox/trunk: merged the network-branche back to the trunk

merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/network . -r6500:HEAD
minor conflicts in texture and one Makefile resolved to the trunk

also made a small patch to texture, so it Modulates with GL_REPEAT

File size: 1.0 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 */
13class Material;
14class Texture;
15
16//! A Class to handle a Planet
17class Planet : public WorldEntity
18{
19 public:
20  Planet(const TiXmlElement* root);
21
22  virtual ~Planet();
23
24  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.