Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
SLight.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 S_LIGHT_HPP_INCLUDED
6#define S_LIGHT_HPP_INCLUDED
7
8#include <duckcpp/core/engine/SColor.hpp>
9#include <duckcpp/core/engine/vector3d.hpp>
10
11namespace dcpp
12{
13namespace video
14{
15
29
32{
33 "Point",
34 "Spot",
35 "Directional",
36 0
37};
38
40
99
100} // end namespace video
101} // end namespace dcpp
102
103#endif
3d vector template class with lots of operators and methods.
Definition vector3d.hpp:32
Class representing a color with four floats.
Definition SColor.hpp:574
class for holding data describing a dynamic point light.
Definition SLight.hpp:43
bool CastShadows
Read-ONLY! Does the light cast shadows?
Definition SLight.hpp:97
SColorf DiffuseColor
Diffuse color emitted by the light.
Definition SLight.hpp:58
dcpp::float32_kt Falloff
The light strength's decrease between Outer and Inner cone. Only for spot lights.
Definition SLight.hpp:77
dcpp::float32_kt InnerCone
The angle of the spot's inner cone. Ignored for other lights.
Definition SLight.hpp:74
SColorf SpecularColor
Specular color emitted by the light.
Definition SLight.hpp:62
dcpp::nub::vector3df Direction
Read-ONLY! Direction of the light.
Definition SLight.hpp:85
dcpp::nub::vector3df Attenuation
Attenuation factors (constant, linear, quadratic)
Definition SLight.hpp:68
dcpp::nub::vector3df Position
Read-ONLY! Position of the light.
Definition SLight.hpp:81
dcpp::float32_kt OuterCone
The angle of the spot's outer cone. Ignored for other lights.
Definition SLight.hpp:71
dcpp::float32_kt Radius
Read-ONLY! Radius of light. Everything within this radius will be lighted.
Definition SLight.hpp:91
E_LIGHT_TYPE Type
Read-ONLY! Type of the light. Default: ELT_POINT.
Definition SLight.hpp:94
SColorf AmbientColor
Ambient color emitted by the light.
Definition SLight.hpp:54
const dcpp::char_kt *const LightTypeNames[]
Names for light types.
Definition SLight.hpp:31
E_LIGHT_TYPE
Enumeration for different types of lights.
Definition SLight.hpp:18
@ ELT_SPOT
spot light, it has a position in space, a direction, and a limited cone of influence
Definition SLight.hpp:22
@ ELT_DIRECTIONAL
directional light, coming from a direction from an infinite distance
Definition SLight.hpp:24
@ ELT_POINT
point light, it has a position in space and radiates light in all directions
Definition SLight.hpp:20
@ ELT_COUNT
Only used for counting the elements of this enum.
Definition SLight.hpp:27
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
char char_kt
8 bit character variable.
Definition irrTypes.hpp:37
float float32_kt
32 bit floating point variable.
Definition irrTypes.hpp:108

Duckcpp    @cppfx.xyz