Changeset 335
- Timestamp:
- 01/13/10 16:11:18 (2 years ago)
- Location:
- trunk/avango-osg
- Files:
-
- 3 edited
-
include/avango/osg/CameraAttachment.h (modified) (2 diffs)
-
src/avango/osg/Camera.cpp (modified) (2 diffs)
-
src/avango/osg/CameraAttachment.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-osg/include/avango/osg/CameraAttachment.h
r299 r335 36 36 #include <avango/StandardFields.h> 37 37 #include <avango/osg/Texture.h> 38 #include <avango/osg/Image.h> 38 39 39 40 namespace av … … 61 62 SFInt InternalFormat; 62 63 SFTexture Texture; 64 SFImage Image; 63 65 SFUInt Level; 64 66 SFUInt Face; -
trunk/avango-osg/src/avango/osg/Camera.cpp
r299 r335 204 204 if (texture) a->Texture.setValue(texture); 205 205 } 206 if (i->second._image) 207 { 208 Image* image = dynamic_cast<Image*>(i->second._image->getUserData()); 209 if (image) a->Image.setValue(image); 210 } 206 211 a->Level.setValue(i->second._level); 207 212 a->Face.setValue(i->second._face); … … 244 249 attachment._texture = (*i)->Texture.getValue()->getOsgTexture(); 245 250 } 251 if ((*i)->Image.getValue().isValid()) 252 { 253 attachment._image = (*i)->Image.getValue()->getOsgImage(); 254 } 246 255 attachment._mipMapGeneration = (*i)->MIPMapGeneration.getValue(); 247 256 attachment._multisampleSamples = (*i)->MultisampleSamples.getValue(); -
trunk/avango-osg/src/avango/osg/CameraAttachment.cpp
r299 r335 25 25 26 26 #include <avango/osg/CameraAttachment.h> 27 #include <avango/osg/Texture.h>28 27 #include <osg/Camera> 29 28 #include <avango/Logger.h> … … 45 44 AV_FC_ADD_FIELD(InternalFormat, GL_RGBA); 46 45 AV_FC_ADD_FIELD(Texture, Link< ::av::osg::Texture >()); 46 AV_FC_ADD_FIELD(Image, Link< ::av::osg::Image >()); 47 47 AV_FC_ADD_FIELD(Level, 0); 48 48 AV_FC_ADD_FIELD(Face, 0);
Note: See TracChangeset
for help on using the changeset viewer.
