File LightWrapper.h

namespace Gsage
class LightWrapper : public Gsage::MovableObjectWrapper<Ogre::Light>

Public Functions

LightWrapper()
virtual ~LightWrapper()
void create(const std::string &name)

Create light instance

Parameters
  • light: name

const std::string &getName() const

Get light name

void setType(const std::string &type)

Set light type

Parameters
  • type: point/directional/spot

std::string getType()

Get light type

void setPosition(const Ogre::Vector3 &position)

Set light position

Parameters
  • position: Ogre::Vector3 position

Ogre::Vector3 getPosition()

Get light position

void setDiffuseColour(const Ogre::ColourValue &value)

Set light diffuse colour

Parameters
  • value: ColourValue

const Ogre::ColourValue &getDiffuseColour() const

Get light diffuse colour

void setSpecularColour(const Ogre::ColourValue &value)

Set light specular colour

Parameters
  • value: ColourValue

const Ogre::ColourValue &getSpecularColour() const

Get light specular colour

void setDirection(const Ogre::Vector3 &value)

Set light direction

Parameters
  • direction: Vector3 direction, non relevant for point light

Ogre::Vector3 getDirection()

Get light direction

void setCastShadows(const bool &value)

Cast shadows from this light

Parameters
  • value: Cast shadows

bool getCastShadows()

Get cast shadows

void setRenderQueue(const unsigned int &queue)

Set render queue

Parameters
  • queue: queue id

unsigned int getRenderQueue()

Get render queue

Public Static Attributes

const std::string TYPE

Private Functions

Ogre::Light::LightTypes mapType(const std::string &type)

Get ogre internal light type from string

Parameters
  • type: point/directional/spotlight

std::string mapType(const Ogre::Light::LightTypes &type)

Convert Ogre light type to string type

Parameters
  • ogre: Ogre::Light::LightTypes