Loading...
Searching...
No Matches
ILightSceneNode.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_LIGHT_SCENE_NODE_H_INCLUDED__
#define __I_LIGHT_SCENE_NODE_H_INCLUDED__
#include "ISceneNode.h"
#include "SLight.h"
namespace irr
{
namespace scene
{
class ILightSceneNode : public ISceneNode
{
public:
ILightSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id,
const core::vector3df& position = core::vector3df(0,0,0))
: ISceneNode(parent, mgr, id, position) {}
virtual void setLightData(const video::SLight& light) = 0;
virtual const video::SLight& getLightData() const = 0;
virtual video::SLight& getLightData() = 0;
virtual void setVisible(bool isVisible) = 0;
virtual void setRadius(f32 radius) = 0;
virtual f32 getRadius() const = 0;
virtual void setLightType(video::E_LIGHT_TYPE type) = 0;
virtual video::E_LIGHT_TYPE getLightType() const = 0;
virtual void enableCastShadow(bool shadow=true) = 0;
virtual bool getCastShadow() const = 0;
};
} // end namespace scene
} // end namespace irr
#endif
ISceneNode.h
SLight.h
irr::scene::ILightSceneNode::enableCastShadow
virtual void enableCastShadow(bool shadow=true)=0
Sets whether this light casts shadows.
irr::scene::ILightSceneNode::setLightType
virtual void setLightType(video::E_LIGHT_TYPE type)=0
Sets the light type.
irr::scene::ILightSceneNode::setVisible
virtual void setVisible(bool isVisible)=0
Sets if the node should be visible or not.
irr::scene::ILightSceneNode::getLightType
virtual video::E_LIGHT_TYPE getLightType() const =0
Gets the light type.
irr::scene::ILightSceneNode::getRadius
virtual f32 getRadius() const =0
Gets the light's radius of influence.
irr::scene::ILightSceneNode::getCastShadow
virtual bool getCastShadow() const =0
Check whether this light casts shadows.
irr::scene::ILightSceneNode::setRadius
virtual void setRadius(f32 radius)=0
Sets the light's radius of influence.
irr::scene::ILightSceneNode::getLightData
virtual const video::SLight & getLightData() const =0
Gets the light data associated with this ILightSceneNode.
irr::scene::ILightSceneNode::ILightSceneNode
ILightSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0))
constructor
Definition ILightSceneNode.h:27
irr::scene::ILightSceneNode::setLightData
virtual void setLightData(const video::SLight &light)=0
Sets the light data associated with this ILightSceneNode.
irr::scene::ILightSceneNode::getLightData
virtual video::SLight & getLightData()=0
Gets the light data associated with this ILightSceneNode.
irr::scene::ISceneManager
The Scene Manager manages scene nodes, mesh recources, cameras and all the other stuff.
Definition ISceneManager.h:151
irr::scene::ISceneNode::ISceneNode
ISceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id=-1, const core::vector3df &position=core::vector3df(0, 0, 0), const core::vector3df &rotation=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(1.0f, 1.0f, 1.0f))
Constructor.
Definition ISceneNode.h:45
irr::scene::ISceneNode::isVisible
virtual bool isVisible() const
Returns whether the node should be visible (if all of its parents are visible).
Definition ISceneNode.h:226
irr::core::vector3df
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
Definition vector3d.h:445
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr::video::E_LIGHT_TYPE
E_LIGHT_TYPE
Enumeration for different types of lights.
Definition SLight.h:17
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::f32
float f32
32 bit floating point variable.
Definition irrTypes.h:104
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
irr::video::SLight
structure for holding data describing a dynamic point light.
Definition SLight.h:42
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0