Updated wrappers

This commit is contained in:
Robert Osfield
2007-02-12 18:02:15 +00:00
parent d28a6011f1
commit 3a48c95fc5
304 changed files with 8597 additions and 376 deletions

View File

@@ -27,38 +27,47 @@ TYPE_NAME_ALIAS(std::list< osg::DeleteHandler::FrameNumberObjectPair >, osg::Del
BEGIN_OBJECT_REFLECTOR(osg::DeleteHandler)
I_ConstructorWithDefaults1(IN, int, numberOfFramesToRetainObjects, 0,
Properties::NON_EXPLICIT,
____DeleteHandler__int,
"",
"");
I_Method1(void, setNumFramesToRetainObjects, IN, int, numberOfFramesToRetainObjects,
Properties::NON_VIRTUAL,
__void__setNumFramesToRetainObjects__int,
"Set the number of frames to retain objects that are have been requested for deletion. ",
"When set to zero objects are deleted immediately, by set to 1 there are kept around for an extra frame etc. The ability to retain obejcts for several frames is useful to prevent premature deletion when objects are stil be used the graphics threads that are using double buffering of rendering data structures with non ref_ptr<> pointers to scene graph elements. ");
I_Method0(int, getNumFramesToRetainObjects,
Properties::NON_VIRTUAL,
__int__getNumFramesToRetainObjects,
"",
"");
I_Method1(void, setFrameNumber, IN, int, frameNumber,
Properties::NON_VIRTUAL,
__void__setFrameNumber__int,
"Set the current frame numberso that subsequent deletes get tagged as associated with this frame. ",
"");
I_Method0(int, getFrameNumber,
Properties::NON_VIRTUAL,
__int__getFrameNumber,
"Get the current frame number. ",
"");
I_Method1(void, doDelete, IN, const osg::Referenced *, object,
Properties::NON_VIRTUAL,
__void__doDelete__C5_Referenced_P1,
"",
"");
I_Method0(void, flush,
Properties::VIRTUAL,
__void__flush,
"Flush objects that ready to be fully deleted. ",
"");
I_Method0(void, flushAll,
Properties::VIRTUAL,
__void__flushAll,
"Flush all objects that the DeleteHandler holds. ",
"Note, this should only be called if there are no threads running with non ref_ptr<> pointers, such as graphics threads. ");
I_Method1(void, requestDelete, IN, const osg::Referenced *, object,
Properties::VIRTUAL,
__void__requestDelete__C5_osg_Referenced_P1,
"Request the deletion of an object. ",
"Depending on users implementation of DeleteHandler, the delete of the object may occur straight away or be delayed until doDelete is called. The default implementation does a delete straight away. ");