Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/xml/src/loader/Light.cc @ 140

Last change on this file since 140 was 140, checked in by nicolape, 16 years ago

XML-Loader so far…

File size: 379 bytes
RevLine 
[140]1
2#include "../xml/xmlParser.h"
3#include "Light.h"
4
5namespace 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.