arsa  2.7
ILightSceneNode.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_LIGHT_SCENE_NODE_H_INCLUDED__
6 #define __I_LIGHT_SCENE_NODE_H_INCLUDED__
7 
8 #include "ISceneNode.h"
9 #include "SLight.h"
10 
11 namespace irr
12 {
13 namespace scene
14 {
15 
17 
23 {
24 public:
25 
28  const core::vector3df& position = core::vector3df(0,0,0))
29  : ISceneNode(parent, mgr, id, position) {}
30 
32 
33  virtual void setLightData(const video::SLight& light) = 0;
34 
36 
37  virtual const video::SLight& getLightData() const = 0;
38 
40 
41  virtual video::SLight& getLightData() = 0;
42 
44 
47  virtual void setVisible(bool isVisible) = 0;
48 
50 
56  virtual void setRadius(f32 radius) = 0;
57 
59 
60  virtual f32 getRadius() const = 0;
61 
63 
64  virtual void setLightType(video::E_LIGHT_TYPE type) = 0;
65 
67 
68  virtual video::E_LIGHT_TYPE getLightType() const = 0;
69 
71 
75  virtual void enableCastShadow(bool shadow=true) = 0;
76 
78 
79  virtual bool getCastShadow() const = 0;
80 };
81 
82 } // end namespace scene
83 } // end namespace irr
84 
85 
86 #endif
87 
GLuint id
virtual const video::SLight & getLightData() const =0
Gets the light data associated with this ILightSceneNode.
virtual bool isVisible() const
Returns whether the node should be visible (if all of its parents are visible).
Definition: ISceneNode.h:243
virtual f32 getRadius() const =0
Gets the light's radius of influence.
float f32
32 bit floating point variable.
Definition: irrTypes.h:108
Scene node interface.
Definition: ISceneNode.h:40
virtual video::E_LIGHT_TYPE getLightType() const =0
Gets the light type.
Scene node which is a dynamic light.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
virtual void setLightType(video::E_LIGHT_TYPE type)=0
Sets the light type.
virtual void setRadius(f32 radius)=0
Sets the light's radius of influence.
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
virtual void setVisible(bool isVisible)=0
Sets if the node should be visible or not.
structure for holding data describing a dynamic point light.
Definition: SLight.h:41
E_LIGHT_TYPE
Enumeration for different types of lights.
Definition: SLight.h:16
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
virtual bool getCastShadow() const =0
Check whether this light casts shadows.
virtual void enableCastShadow(bool shadow=true)=0
Sets whether this light casts shadows.
virtual void setLightData(const video::SLight &light)=0
Sets the light data associated with this ILightSceneNode.
GLuint GLuint GLsizei GLenum type
Definition: SDL_opengl.h:1571
ILightSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0))
constructor