Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4773 was 4746, checked in by bensch, 19 years ago

orxonox/trunk: changed (void) → ()

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