22 #ifndef TETRAEDGE_GAME_SCENE_LIGHTS_XML_PARSER_H 23 #define TETRAEDGE_GAME_SCENE_LIGHTS_XML_PARSER_H 25 #include "common/formats/xmlparser.h" 26 #include "tetraedge/te/te_light.h" 27 #include "tetraedge/te/te_vector3f32.h" 28 #include "tetraedge/te/te_xml_parser.h" 35 _lights(lights), _shadowLightNo(-1), _shadowFarPlane(0),
36 _shadowNearPlane(0), _shadowFov(0), _parent(ParentNone) {}
38 TeColor getShadowColor() {
return _shadowColor; }
39 int getShadowLightNo() {
return _shadowLightNo; }
40 float getShadowFarPlane() {
return _shadowFarPlane; }
41 float getShadowNearPlane() {
return _shadowNearPlane; }
42 float getShadowFov() {
return _shadowFov; }
81 XML_PROP(constant,
true)
82 XML_PROP(linear,
true)
83 XML_PROP(quadratic,
true)
98 XML_PROP(number,
true)
101 XML_PROP(value,
true)
104 XML_PROP(value,
true)
107 XML_PROP(value,
true)
121 enum ParentNodeType {
130 float _shadowFarPlane;
131 float _shadowNearPlane;
133 ParentNodeType _parent;
137 bool parserCallback_Ambient(
ParserNode *node);
141 bool parserCallback_Position(
ParserNode *node);
142 bool parserCallback_Direction(
ParserNode *node);
144 bool parserCallback_Diffuse(
ParserNode *node);
145 bool parserCallback_Specular(
ParserNode *node);
146 bool parserCallback_Attenuation(
ParserNode *node);
148 bool parserCallback_Exponent(
ParserNode *node);
149 bool parserCallback_DisplaySize(
ParserNode *node);
152 bool parserCallback_SourceLight(
ParserNode *node);
154 bool parserCallback_NearPlane(
ParserNode *node);
155 bool parserCallback_FarPlane(
ParserNode *node);
162 #endif // TETRAEDGE_GAME_SCENE_LIGHTS_XML_PARSER_H Definition: detection.h:27
Definition: te_color.h:30
Definition: xmlparser.h:145
Definition: te_xml_parser.h:38
Definition: scene_lights_xml_parser.h:32