Irrlicht 3D Engine
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SLight.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 __S_LIGHT_H_INCLUDED__
6
#define __S_LIGHT_H_INCLUDED__
7
8
#include "
SColor.h
"
9
10
namespace
irr
11
{
12
namespace
video
13
{
14
16
enum
E_LIGHT_TYPE
17
{
19
ELT_POINT
,
21
ELT_SPOT
,
23
ELT_DIRECTIONAL
,
24
26
ELT_COUNT
27
};
28
30
const
c8
*
const
LightTypeNames
[] =
31
{
32
"Point"
,
33
"Spot"
,
34
"Directional"
,
35
0
36
};
37
39
41
struct
SLight
42
{
43
SLight
() :
AmbientColor
(0.f,0.f,0.f),
DiffuseColor
(1.f,1.f,1.f),
44
SpecularColor
(1.f,1.f,1.f),
Attenuation
(1.f,0.f,0.f),
45
OuterCone
(45.f),
InnerCone
(0.f),
Falloff
(2.f),
46
Position
(0.f,0.f,0.f),
Direction
(0.f,0.f,1.f),
47
Radius
(100.f),
Type
(
ELT_POINT
),
CastShadows
(true)
48
{}
49
51
SColorf
AmbientColor
;
52
54
55
SColorf
DiffuseColor
;
56
58
59
SColorf
SpecularColor
;
60
62
65
core::vector3df
Attenuation
;
66
68
f32
OuterCone
;
69
71
f32
InnerCone
;
72
74
f32
Falloff
;
75
77
78
core::vector3df
Position
;
79
81
82
core::vector3df
Direction
;
83
85
f32
Radius
;
86
88
E_LIGHT_TYPE
Type
;
89
91
bool
CastShadows
:1;
92
};
93
94
}
// end namespace video
95
}
// end namespace irr
96
97
#endif
98
Irrlicht Engine
Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Sun Apr 21 2019 20:57:28 for Irrlicht 3D Engine by
Doxygen
1.8.1.2