Show
Ignore:
Timestamp:
01/07/10 13:14:47 (5 years ago)
Author:
robert
Message:

Refactored the way that osg::Image/ImageSequence manages the update callback that needs to be attached to Textures to make it possible to use the Image::update() mechansim in other subclasses from osg::Image.
To enable the automatic attachment of the required update callback to call osg::Image::update(..) subclasses from osg::Image will
need to implement the osg::Image::requestUpdateCall() and return true, and implement the osg::Image::update(NodeVisitor?*) method to recieve the update call during the update traversal.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgWrappers/osg/ImageSequence.cpp

    r10863 r10924  
    1616#include <osg/NodeVisitor> 
    1717#include <osg/Object> 
    18 #include <osg/StateAttribute> 
    1918 
    2019// Must undefine IN and OUT macros defined in Windows headers 
     
    207206                  "", 
    208207                  ""); 
     208        I_Method0(bool, requiresUpdateCall, 
     209                  Properties::VIRTUAL, 
     210                  __bool__requiresUpdateCall, 
     211                  "ImageSequence requires a call to update(NodeVisitor*) during the update traversal so return true. ", 
     212                  ""); 
    209213        I_Method1(void, update, IN, osg::NodeVisitor *, nv, 
    210214                  Properties::VIRTUAL, 
    211215                  __void__update__NodeVisitor_P1, 
    212                   "", 
     216                  "update method for osg::Image subclasses that update themselves during the update traversal. ", 
    213217                  ""); 
    214218        I_ProtectedMethod0(void, applyLoopingMode, 
     
    270274END_REFLECTOR 
    271275 
    272 BEGIN_OBJECT_REFLECTOR(osg::ImageSequence::UpdateCallback) 
    273         I_DeclaringFile("osg/ImageSequence"); 
    274         I_BaseType(osg::StateAttributeCallback); 
    275         I_Constructor0(____UpdateCallback, 
    276                        "", 
    277                        ""); 
    278 END_REFLECTOR 
    279  
    280276BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) 
    281277        I_DeclaringFile("osg/ref_ptr");