source:
code/branches/xml-old/src/loader/Light.cc
@
186
Last change on this file since 186 was 140, checked in by nicolape, 17 years ago | |
---|---|
File size: 379 bytes |
Line | |
---|---|
1 | |
2 | #include "../xml/xmlParser.h" |
3 | #include "Light.h" |
4 | |
5 | namespace light |
6 | { |
7 | Light::Light() |
8 | { |
9 | |
10 | } |
11 | |
12 | Light::Light(XMLNode xml) |
13 | { |
14 | this->loadParams(xml); |
15 | } |
16 | |
17 | void Light::loadParams(XMLNode xml) |
18 | { |
19 | // Here comes the tricky part... convert strings to int |
20 | const char* diffuse = xml.getAttribute("diffuse-color"); |
21 | const char* coor = xml.getAttribute("abs-coor"); |
22 | } |
23 | } |
Note: See TracBrowser
for help on using the repository browser.