Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
SLight.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2010 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 
17 {
24 };
25 
27 const c8* const LightTypeNames[] =
28 {
29  "Point",
30  "Spot",
31  "Directional",
32  0
33 };
34 
36 
38 struct SLight
39 {
40  SLight() : AmbientColor(0.f,0.f,0.f), DiffuseColor(1.f,1.f,1.f),
41  SpecularColor(1.f,1.f,1.f), Attenuation(1.f,0.f,0.f),
42  OuterCone(45.f), InnerCone(0.f), Falloff(2.f),
43  Position(0.f,0.f,0.f), Direction(0.f,0.f,1.f),
44  Radius(100.f), Type(ELT_POINT), CastShadows(true)
45  {}
46 
49 
51 
53 
55 
57 
59 
63 
66 
69 
72 
74 
76 
78 
80 
83 
86 
88  bool CastShadows:1;
89 };
90 
91 } // end namespace video
92 } // end namespace irr
93 
94 #endif
95 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Tue Jun 5 2012 17:57:14 by Doxygen (1.8.1)