Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/loader/Light.cc @ 444

Last change on this file since 444 was 347, checked in by rgrieder, 17 years ago
  • fixed a bug: under windows, XML uses wchar_t instead of char, but can use char —> commented a line in xml/xmlParser.h according to description in that file
  • was able to add the xml parser again to orxonox.cc thanks to the above modification
File size: 403 bytes
Line 
1
2#include "xml/xmlParser.h"
3#include "Light.h"
4
5namespace light
6{                                                               
7        Light::Light()
8        {               
9               
10        }
11
12  Light::~Light()
13  {
14  }
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
24                const char* diffuse = xml.getAttribute("diffuse-color");
25                const char* coor = xml.getAttribute("abs-coor");
26        }
27}
Note: See TracBrowser for help on using the repository browser.