Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 1, 2006, 7:42:35 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: new entity

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/environments/movie_entity.h

    r6967 r6968  
    11/*!
    2  * @file planet.h
    3  *  Definition of the Planet, that handles the Display of an atmosphere for orxonox.
     2 * @file movie_entity.h
     3 *  Definition of the ModelEntity, that handles the Display of an atmosphere for orxonox.
    44 */
    55
    6 #ifndef _PLANET_H
    7 #define _PLANET_H
     6#ifndef _MODEL_ENTITY_H
     7#define _MODEL_ENTITY_H
    88
    99/* INCLUDES */
     
    1111
    1212/* FORWARD DECLARATION */
    13 class Material;
    14 class Texture;
    1513
    16 //! A Class to handle a Planet
    17 class Planet : public WorldEntity
     14//! A Class to handle a ModelEntity
     15class ModelEntity : public WorldEntity
    1816{
    1917 public:
    20   Planet(const TiXmlElement* root);
     18  ModelEntity(const TiXmlElement* root);
    2119
    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);
     20  virtual ~ModelEntity();
    2921
    3022
    31   virtual void draw() const;
     23  private:
     24
     25};
     26
     27#endif  /* _MODEL_ENTITY_H */
    3228
    3329
    3430
    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 TracChangeset for help on using the changeset viewer.