Castle Battle  1.0
Public Member Functions | Private Attributes | List of all members
Sky Class Reference

Sky of the world. More...

#include <Sky.h>

Public Member Functions

 Sky (scene::ISceneManager *smgr, video::IVideoDriver *driver, core::stringw texture, f32 radius)
 Default constructor that will build the sky. More...
 

Private Attributes

scene::ISceneNode * sky
 Scene node of the sky. More...
 

Detailed Description

Sky of the world.

A skydome is a large sphere with a panoramic texture on the inside and is drawn around the camera position. It is used a blue-sky texture.

Constructor & Destructor Documentation

◆ Sky()

Sky::Sky ( scene::ISceneManager *  smgr,
video::IVideoDriver *  driver,
core::stringw  texture,
f32  radius 
)

Default constructor that will build the sky.

Parameters
smgrISceneManager irrlicht ISceneManager.
driverIVideoDriver irrlicht IVideoDriver.
texturestringw Texture path.
radiusf32 radius of the skydome.
4  {
5  this->sky = smgr->addSkyDomeSceneNode(driver->getTexture(texture.c_str()),16,8,0.95f,2.0f,radius);
6 }
scene::ISceneNode * sky
Scene node of the sky.
Definition: Sky.h:10

Member Data Documentation

◆ sky

scene::ISceneNode* Sky::sky
private

Scene node of the sky.


The documentation for this class was generated from the following files: