From 86893a507f33c6062ae449b320e4401e4346e7ea Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 10 Nov 2005 15:27:49 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osg/GraphicsThread.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/osgWrappers/osg/GraphicsThread.cpp b/src/osgWrappers/osg/GraphicsThread.cpp index af7909714..fc90a7e2f 100644 --- a/src/osgWrappers/osg/GraphicsThread.cpp +++ b/src/osgWrappers/osg/GraphicsThread.cpp @@ -29,6 +29,7 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::BarrierOperation) I_BaseType(osg::GraphicsThread::Operation); I_ConstructorWithDefaults2(IN, int, numThreads, , IN, osg::BarrierOperation::PreBlockOp, op, osg::BarrierOperation::NO_OPERATION); + I_Method0(void, release); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Block) @@ -45,8 +46,16 @@ BEGIN_OBJECT_REFLECTOR(osg::GraphicsThread) I_BaseType(osg::Referenced); I_Constructor0(); I_MethodWithDefaults2(void, add, IN, osg::GraphicsThread::Operation *, operation, , IN, bool, waitForCompletion, false); + I_Method1(void, remove, IN, osg::GraphicsThread::Operation *, operation); + I_Method1(void, remove, IN, const std::string &, name); + I_Method0(void, removeAllOperations); + I_Method0(osg::ref_ptr< osg::GraphicsThread::Operation >, getCurrentOperation); I_Method0(void, run); + I_Method1(void, setDone, IN, bool, done); + I_Method0(bool, getDone); I_Method0(int, cancel); + I_ReadOnlyProperty(osg::ref_ptr< osg::GraphicsThread::Operation >, CurrentOperation); + I_Property(bool, Done); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::GraphicsThread::Operation) @@ -56,6 +65,7 @@ BEGIN_OBJECT_REFLECTOR(osg::GraphicsThread::Operation) I_Method0(const std::string &, getName); I_Method1(void, setKeep, IN, bool, keep); I_Method0(bool, getKeep); + I_Method0(void, release); I_Property(bool, Keep); I_Property(const std::string &, Name); END_REFLECTOR @@ -64,6 +74,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ReleaseContext_Block_MakeCurrentOperation) I_BaseType(osg::GraphicsThread::Operation); I_BaseType(osg::Block); I_Constructor0(); + I_Method0(void, release); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::SwapBuffersOperation) @@ -71,3 +82,15 @@ BEGIN_OBJECT_REFLECTOR(osg::SwapBuffersOperation) I_Constructor0(); END_REFLECTOR +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::GraphicsThread::Operation >) + I_Constructor0(); + I_Constructor1(IN, osg::GraphicsThread::Operation *, t); + I_Constructor1(IN, const osg::ref_ptr< osg::GraphicsThread::Operation > &, rp); + I_Method0(bool, valid); + I_Method0(osg::GraphicsThread::Operation *, get); + I_Method0(const osg::GraphicsThread::Operation *, get); + I_Method0(osg::GraphicsThread::Operation *, take); + I_Method0(osg::GraphicsThread::Operation *, release); + I_ReadOnlyProperty(osg::GraphicsThread::Operation *, ); +END_REFLECTOR +