Last change
on this file since 346 was
346,
checked in by rgrieder, 17 years ago
|
- adjusted the entire source to compile under windows visual studio too:
- added some ugly conversions
- changed some illegal code pieces (gcc however accepted it)
- added a few files from reto's framework to evade linker errors (no more dynamic linking)
- inserted some 'return true' to justify the return type
- excluded the levelLoader in the orxonox.cc (couldn't make it work, parsing error)
- wrote about 5 code #branches to compensate for missing usleep() under windows
|
File size:
461 bytes
|
Rev | Line | |
---|
[164] | 1 | |
---|
[341] | 2 | #include "xml/xmlParser.h" |
---|
[164] | 3 | #include "Light.h" |
---|
| 4 | |
---|
| 5 | namespace light |
---|
| 6 | { |
---|
| 7 | Light::Light() |
---|
| 8 | { |
---|
| 9 | |
---|
| 10 | } |
---|
[346] | 11 | |
---|
| 12 | Light::~Light() |
---|
| 13 | { |
---|
| 14 | } |
---|
[164] | 15 | |
---|
| 16 | Light::Light(XMLNode xml) |
---|
| 17 | { |
---|
| 18 | this->loadParams(xml); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | void Light::loadParams(XMLNode xml) |
---|
| 22 | { |
---|
| 23 | // Here comes the tricky part... convert strings to int |
---|
[346] | 24 | const char* diffuse = (const char*)xml.getAttribute((const wchar_t*)"diffuse-color"); |
---|
| 25 | const char* coor = (const char*)xml.getAttribute((const wchar_t*)"abs-coor"); |
---|
[164] | 26 | } |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.