5#ifndef NIRT_I_LIGHT_SCENE_NODE_HPP_INCLUDED
6#define NIRT_I_LIGHT_SCENE_NODE_HPP_INCLUDED
8#include <nirtcpp/core/engine/ISceneNode.hpp>
9#include <nirtcpp/core/engine/SLight.hpp>
Scene node which is a dynamic light.
Definition ILightSceneNode.hpp:23
virtual void enableCastShadow(bool shadow=true)=0
Sets whether this light casts shadows.
virtual void setVisible(bool isVisible)=0
Sets if the node should be visible or not.
virtual void setLightType(video::E_LIGHT_TYPE type)=0
Sets the light type.
virtual void setLightData(const video::SLight &light)=0
Sets the light data associated with this ILightSceneNode.
virtual video::SLight & getLightData()=0
Gets the light data associated with this ILightSceneNode.
virtual void setRadius(f32 radius)=0
Sets the light's radius of influence.
virtual f32 getRadius() const =0
Gets the light's radius of influence.
virtual video::E_LIGHT_TYPE getLightType() const =0
Gets the light type.
virtual bool getCastShadow() const =0
Check whether this light casts shadows.
virtual const video::SLight & getLightData() const =0
Gets the light data associated with this ILightSceneNode.
ILightSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0))
constructor
Definition ILightSceneNode.hpp:27
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
Definition ISceneManager.hpp:160
Scene node interface.
Definition ISceneNode.hpp:43
virtual bool isVisible() const
Returns whether the node should be visible (if all of its parents are visible).
Definition ISceneNode.hpp:246
class for holding data describing a dynamic point light.
Definition SLight.hpp:43
E_LIGHT_TYPE
Enumeration for different types of lights.
Definition SLight.hpp:18
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110