| 
                Last change
                  on this file since 1517 was
                  164,
                  checked in by nicolasc, 18 years ago
           | 
        
        
          | 
               
Brute force megre of xml branch 
 
           | 
        
        | 
            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.