Ignore:
Timestamp:
01/13/10 16:11:18 (2 years ago)
Author:
rkuck
Message:

CameraAttachment? can now contain an Image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/src/avango/osg/Camera.cpp

    r299 r335  
    204204      if (texture) a->Texture.setValue(texture); 
    205205    } 
     206    if (i->second._image) 
     207    { 
     208      Image* image = dynamic_cast<Image*>(i->second._image->getUserData()); 
     209      if (image) a->Image.setValue(image); 
     210    } 
    206211    a->Level.setValue(i->second._level); 
    207212    a->Face.setValue(i->second._face); 
     
    244249      attachment._texture = (*i)->Texture.getValue()->getOsgTexture(); 
    245250    } 
     251    if ((*i)->Image.getValue().isValid()) 
     252    { 
     253      attachment._image = (*i)->Image.getValue()->getOsgImage(); 
     254    } 
    246255    attachment._mipMapGeneration = (*i)->MIPMapGeneration.getValue(); 
    247256    attachment._multisampleSamples = (*i)->MultisampleSamples.getValue(); 
Note: See TracChangeset for help on using the changeset viewer.