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
-
void
setDiffuseColour
(const Ogre::ColourValue &value)¶ Set light diffuse colour
- Parameters
value
: ColourValue
-
void
setSpecularColour
(const Ogre::ColourValue &value)¶ Set light specular colour
- Parameters
value
: ColourValue
-
void
setDirection
(const Ogre::Vector3 &value)¶ Set light direction
- Parameters
direction
: Vector3 direction, non relevant for point light
-
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
¶
-
-
class