Changeset 6968 in orxonox.OLD for trunk/src/world_entities/environments/movie_entity.h
- Timestamp:
- Feb 1, 2006, 7:42:35 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/movie_entity.h
r6967 r6968 1 1 /*! 2 * @file planet.h3 * 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. 4 4 */ 5 5 6 #ifndef _ PLANET_H7 #define _ PLANET_H6 #ifndef _MODEL_ENTITY_H 7 #define _MODEL_ENTITY_H 8 8 9 9 /* INCLUDES */ … … 11 11 12 12 /* FORWARD DECLARATION */ 13 class Material;14 class Texture;15 13 16 //! A Class to handle a Planet17 class Planet: public WorldEntity14 //! A Class to handle a ModelEntity 15 class ModelEntity : public WorldEntity 18 16 { 19 17 public: 20 Planet(const TiXmlElement* root);18 ModelEntity(const TiXmlElement* root); 21 19 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(); 29 21 30 22 31 virtual void draw() const; 23 private: 24 25 }; 26 27 #endif /* _MODEL_ENTITY_H */ 32 28 33 29 34 30 35 private:36 Material* material; //!< Materials for the Planet. sorted by number (0-5) top, bottom, left, right, front, back37 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 Texture42 43 };44 45 #endif /* _PLANET_H */46 47 48
Note: See TracChangeset
for help on using the changeset viewer.