Updated wrappers

This commit is contained in:
Robert Osfield
2008-06-04 16:53:17 +00:00
parent 282fa84789
commit c57b288e54
3 changed files with 36 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/GraphicsContext>
#include <osg/Referenced>
#include <osg/Timer>
#include <osgGA/EventQueue>
@@ -68,6 +69,11 @@ BEGIN_OBJECT_REFLECTOR(osgGA::EventQueue)
__bool__getUseFixedMouseInputRange,
"Get whether the mouse coordinates should be transformed into a pre defined input range. ",
"");
I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context,
Properties::NON_VIRTUAL,
__void__setGraphicsContext__osg_GraphicsContext_P1,
"Set the graphics context associated with this event queue. ",
"");
I_Method4(void, setMouseInputRange, IN, float, xMin, IN, float, yMin, IN, float, xMax, IN, float, yMax,
Properties::NON_VIRTUAL,
__void__setMouseInputRange__float__float__float__float,
@@ -274,6 +280,9 @@ BEGIN_OBJECT_REFLECTOR(osgGA::EventQueue)
I_SimpleProperty(osgGA::EventQueue::Events &, Events,
0,
__void__setEvents__Events_R1);
I_SimpleProperty(osg::GraphicsContext *, GraphicsContext,
0,
__void__setGraphicsContext__osg_GraphicsContext_P1);
I_SimpleProperty(osg::Timer_t, StartTick,
__osg_Timer_t__getStartTick,
__void__setStartTick__osg_Timer_t);

View File

@@ -11,6 +11,7 @@
#include <osgIntrospection/Attributes>
#include <osg/CopyOp>
#include <osg/GraphicsContext>
#include <osg/Matrix>
#include <osg/Object>
#include <osgGA/GUIEventAdapter>
@@ -296,6 +297,16 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter)
__double__time,
"deprecated function for getting time of event. ",
"");
I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context,
Properties::NON_VIRTUAL,
__void__setGraphicsContext__osg_GraphicsContext_P1,
"",
"");
I_Method0(const osg::GraphicsContext *, getGraphicsContext,
Properties::NON_VIRTUAL,
__C5_osg_GraphicsContext_P1__getGraphicsContext,
"",
"");
I_MethodWithDefaults5(void, setWindowRectangle, IN, int, x, , IN, int, y, , IN, int, width, , IN, int, height, , IN, bool, updateMouseRange, true,
Properties::NON_VIRTUAL,
__void__setWindowRectangle__int__int__int__int__bool,
@@ -519,6 +530,9 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter)
I_SimpleProperty(osgGA::GUIEventAdapter::EventType, EventType,
__EventType__getEventType,
__void__setEventType__EventType);
I_SimpleProperty(osg::GraphicsContext *, GraphicsContext,
0,
__void__setGraphicsContext__osg_GraphicsContext_P1);
I_SimpleProperty(bool, Handled,
__bool__getHandled,
__void__setHandled__bool);

View File

@@ -190,6 +190,16 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ViewerBase)
__bool__getQuitEventSetsDone,
"",
"true if the viewer respond to the QUIT_APPLICATION-event ");
I_Method1(void, setReleaseContextAtEndOfFrameHint, IN, bool, hint,
Properties::NON_VIRTUAL,
__void__setReleaseContextAtEndOfFrameHint__bool,
"Hint to tell the renderingTraversals() method whether to call relaseContext() on the last context that was made current by the thread calling renderingTraverals(). ",
"Note, when running multi-threaded viewer no threads will be made current or release current. Setting this hint to false can enable the frame loop to be lazy about calling makeCurrent and releaseContext on each new frame, helping performance. However, if you frame loop is managing multiple graphics context all from the main frame thread then this hint must be left on, otherwise the wrong context could be left active, introducing errors in rendering. ");
I_Method0(bool, getReleaseContextAtEndOfFrameHint,
Properties::NON_VIRTUAL,
__bool__getReleaseContextAtEndOfFrameHint,
"Hint to tell the renderingTraversals() method whether to call relaseContext(). ",
"");
I_Method1(void, setUpdateVisitor, IN, osgUtil::UpdateVisitor *, updateVisitor,
Properties::NON_VIRTUAL,
__void__setUpdateVisitor__osgUtil_UpdateVisitor_P1,
@@ -361,6 +371,9 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ViewerBase)
I_SimpleProperty(osg::Operation *, RealizeOperation,
__osg_Operation_P1__getRealizeOperation,
__void__setRealizeOperation__osg_Operation_P1);
I_SimpleProperty(bool, ReleaseContextAtEndOfFrameHint,
__bool__getReleaseContextAtEndOfFrameHint,
__void__setReleaseContextAtEndOfFrameHint__bool);
I_SimpleProperty(osg::Stats *, Stats,
__osg_Stats_P1__getStats,
__void__setStats__osg_Stats_P1);