OpenSceneGraph/examples/osgframerenderer/EventProperty.cpp
2012-11-19 11:25:52 +00:00

42 lines
670 B
C++

#include "EventProperty.h"
namespace gsc
{
void EventProperty::update(osgViewer::View* view)
{
if (view && view->getEventQueue() && _event.valid())
{
view->getEventQueue()->addEvent(_event.get());
}
}
/////////////////////////////////////////////////////////////////////////////////////////
//
// Serialization support
//
REGISTER_OBJECT_WRAPPER( gsc_EventProperty,
new gsc::EventProperty,
gsc::EventProperty,
"osg::Object gsc::EventProperty" )
{
ADD_OBJECT_SERIALIZER( Event, osgGA::GUIEventAdapter, NULL );
}
}
namespace osgGA
{
namespace B
{
}
}