Show
Ignore:
Timestamp:
10/22/09 12:33:16 (4 years ago)
Author:
robert
Message:

From Cedric Pinson, "Here a patch to be able to clone stateattribute, in order to do that i
moved the StateAttribute::Callback structure to a file
StateAttributeCallback? with the same behavior as NodeCallback?.
"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/StateSet.cpp

    r9989 r10671  
    16741674            ++itr) 
    16751675        { 
    1676             StateAttribute::Callback* callback = itr->second.first->getUpdateCallback(); 
     1676            StateAttributeCallback* callback = itr->second.first->getUpdateCallback(); 
    16771677            if (callback) (*callback)(itr->second.first.get(),nv); 
    16781678        } 
     
    16871687                ++itr) 
    16881688            { 
    1689                 StateAttribute::Callback* callback = itr->second.first->getUpdateCallback(); 
     1689                StateAttributeCallback* callback = itr->second.first->getUpdateCallback(); 
    16901690                if (callback) (*callback)(itr->second.first.get(),nv); 
    16911691            } 
     
    17481748            ++itr) 
    17491749        { 
    1750             StateAttribute::Callback* callback = itr->second.first->getEventCallback(); 
     1750            StateAttributeCallback* callback = itr->second.first->getEventCallback(); 
    17511751            if (callback) (*callback)(itr->second.first.get(),nv); 
    17521752        } 
     
    17611761                ++itr) 
    17621762            { 
    1763                 StateAttribute::Callback* callback = itr->second.first->getEventCallback(); 
     1763                StateAttributeCallback* callback = itr->second.first->getEventCallback(); 
    17641764                if (callback) (*callback)(itr->second.first.get(),nv); 
    17651765            }