Added osgframerenderer example

This commit is contained in:
Robert Osfield
2012-11-12 15:26:30 +00:00
parent e9a7b2a6e5
commit 79ae9cd8a3
11 changed files with 886 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
#include "EventProperty.h"
namespace gsc
{
void EventProperty::update(osgViewer::View* view)
{
if (view && view->getEventQueue() && _event.valid())
{
view->getEventQueue()->addEvent(_event);
}
}
/////////////////////////////////////////////////////////////////////////////////////////
//
// 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
{
}
}