Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
ILightSceneNode.hpp
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 duckcpp/duckcpp.hpp
4
5#ifndef DCPP_I_LIGHT_SCENE_NODE_HPP_INCLUDED
6#define DCPP_I_LIGHT_SCENE_NODE_HPP_INCLUDED
7
8#include <duckcpp/core/engine/ISceneNode.hpp>
9#include <duckcpp/core/engine/SLight.hpp>
10
11namespace dcpp
12{
13namespace scene
14{
15
17
23{
24public:
25
28 const dcpp::nub::vector3df& position = dcpp::nub::vector3df(0,0,0))
29 : ISceneNode(parent, mgr, id, position) {}
30
32
33 virtual void setLightData(const dcpp::video::SLight& light) = 0;
34
36
37 virtual const dcpp::video::SLight& getLightData() const = 0;
38
40
42
44
47 virtual void setVisible(bool isVisible) = 0;
48
50
56 virtual void setRadius(dcpp::float32_kt radius) = 0;
57
59
60 virtual dcpp::float32_kt getRadius() const = 0;
61
63
65
67
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 dcpp
84
85
86#endif
3d vector template class with lots of operators and methods.
Definition vector3d.hpp:32
Scene node which is a dynamic light.
Definition ILightSceneNode.hpp:23
virtual dcpp::float32_kt getRadius() const =0
Gets the light's radius of influence.
virtual void enableCastShadow(bool shadow=true)=0
Sets whether this light casts shadows.
virtual void setLightData(const dcpp::video::SLight &light)=0
Sets the light data associated with this ILightSceneNode.
virtual dcpp::video::SLight & getLightData()=0
Gets the light data associated with this ILightSceneNode.
virtual void setLightType(dcpp::video::E_LIGHT_TYPE type)=0
Sets the light type.
virtual dcpp::video::E_LIGHT_TYPE getLightType() const =0
Gets the light type.
virtual void setRadius(dcpp::float32_kt radius)=0
Sets the light's radius of influence.
virtual bool getCastShadow() const =0
Check whether this light casts shadows.
ILightSceneNode(ISceneNode *parent, ISceneManager *mgr, dcpp::int32_kt id, const dcpp::nub::vector3df &position=dcpp::nub::vector3df(0, 0, 0))
constructor
Definition ILightSceneNode.hpp:27
virtual const dcpp::video::SLight & getLightData() const =0
Gets the light data associated with this ILightSceneNode.
virtual void setVisible(bool isVisible)=0
Sets if the node should be visible or not.
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 Duckcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
float float32_kt
32 bit floating point variable.
Definition irrTypes.hpp:108
signed int int32_kt
32 bit signed variable.
Definition irrTypes.hpp:72

Duckcpp    @cppfx.xyz