Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/skybox.h @ 5456

Last change on this file since 5456 was 5405, checked in by bensch, 19 years ago

orxonox/trunk: renamed definition to the right term declaration…

File size: 1.2 KB
RevLine 
[4597]1/*!
[5039]2 * @file skybox.h
[5357]3 *  Definition of the SkyBox, that handles the Display of an atmosphere for orxonox.
4 *
5 * A SkyBox is always centered at the current working Camera, and will only obey the cameras
6 * movment but not its rotation.
[3416]7*/
8
[3796]9#ifndef _SKYBOX_H
10#define _SKYBOX_H
[3416]11
[3419]12/* INCLUDES */
[3502]13#include "world_entity.h"
[3411]14
[5405]15/* FORWARD DECLARATION */
[3419]16
[3807]17//! A Class to handle a SkyBox
[3796]18class SkyBox : public WorldEntity
[3411]19{
[3416]20 public:
[4261]21  SkyBox(const char* fileName = NULL);
22  SkyBox(const TiXmlElement* root);
[4010]23
[3796]24  virtual ~SkyBox();
[3419]25
[5357]26  void init();
[4746]27  void preInit();
[4680]28
[4261]29  void loadParams(const TiXmlElement* root);
30
[4746]31  void postInit();
[4010]32
[4012]33
[3796]34  void setSize(float size);
[4998]35  /** assumes jpg as input-format */
[5357]36  void setTexture(const char* name) { this->setTextureAndType (name, "jpg"); };
[4680]37
[4261]38  void setTextureAndType(const char* name, const char* extension);
[4680]39  void setTextures(const char* top, const char* bottom, const char* left,
40                   const char* right, const char* front, const char* back);
[3420]41
[3801]42 private:
43  void rebuild();
44
[4597]45  Material**      material;        //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back
46  float           size;            //!< Size of the SkyBox. This should match the frustum maximum range.
47
[3411]48};
49
[3796]50#endif  /* _SKYBOX_H */
[3411]51
52
[3484]53
Note: See TracBrowser for help on using the repository browser.