14#ifndef OSG_DELETEHANDLER
15#define OSG_DELETEHANDLER 1
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
ObjectsToDeleteList _objectsToDelete
Definition DeleteHandler:83
void doDelete(const Referenced *object)
Definition DeleteHandler:58
unsigned int getFrameNumber() const
Get the current frame number.
Definition DeleteHandler:56
OpenThreads::Mutex _mutex
Definition DeleteHandler:82
std::pair< unsigned int, const osg::Referenced * > FrameNumberObjectPair
Definition DeleteHandler:36
void setFrameNumber(unsigned int frameNumber)
Set the current frame number so that subsequent deletes get tagged as associated with this frame.
Definition DeleteHandler:53
std::list< FrameNumberObjectPair > ObjectsToDeleteList
Definition DeleteHandler:37
DeleteHandler(int numberOfFramesToRetainObjects=0)
unsigned int getNumFramesToRetainObjects() const
Definition DeleteHandler:50
DeleteHandler(const DeleteHandler &)
Definition DeleteHandler:75
void setNumFramesToRetainObjects(unsigned int numberOfFramesToRetainObjects)
Set the number of frames to retain objects that have been requested for deletion.
Definition DeleteHandler:48
virtual void flush()
Flush objects that are ready to be fully deleted.
unsigned int _numFramesToRetainObjects
Definition DeleteHandler:80
unsigned int _currentFrameNumber
Definition DeleteHandler:81
virtual void flushAll()
Flush all objects that the DeleteHandler holds.
virtual void requestDelete(const osg::Referenced *object)
Request the deletion of an object.
Base class for providing reference counted objects.
Definition Referenced:44
#define OSG_EXPORT
Definition Export:39