source:
code/branches/xml/src/loader/Light.cc
@
140
Last change on this file since 140 was 140, checked in by nicolape, 18 years ago | |
---|---|
File size: 379 bytes |
Rev | Line | |
---|---|---|
[140] | 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.