OpenSceneGraph
3.0.1
|
Public Member Functions | |
TextureObjectManager (unsigned int contextID) | |
unsigned int | getContextID () const |
void | setNumberActiveTextureObjects (unsigned int size) |
unsigned int & | getNumberActiveTextureObjects () |
unsigned int | getNumberActiveTextureObjects () const |
void | setNumberOrphanedTextureObjects (unsigned int size) |
unsigned int & | getNumberOrphanedTextureObjects () |
unsigned int | getNumberOrphanedTextureObjects () const |
void | setCurrTexturePoolSize (unsigned int size) |
unsigned int & | getCurrTexturePoolSize () |
unsigned int | getCurrTexturePoolSize () const |
void | setMaxTexturePoolSize (unsigned int size) |
unsigned int | getMaxTexturePoolSize () const |
bool | hasSpace (unsigned int size) const |
bool | makeSpace (unsigned int size) |
TextureObject * | generateTextureObject (const Texture *texture, GLenum target) |
TextureObject * | generateTextureObject (const Texture *texture, GLenum target, GLint numMipmapLevels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border) |
void | handlePendingOrphandedTextureObjects () |
void | deleteAllTextureObjects () |
void | discardAllTextureObjects () |
void | flushAllDeletedTextureObjects () |
void | discardAllDeletedTextureObjects () |
void | flushDeletedTextureObjects (double currentTime, double &availableTime) |
void | releaseTextureObject (TextureObject *to) |
TextureObjectSet * | getTextureObjectSet (const TextureProfile &profile) |
void | newFrame (osg::FrameStamp *fs) |
void | resetStats () |
void | reportStats (std::ostream &out) |
void | recomputeStats (std::ostream &out) const |
bool | checkConsistency () const |
unsigned int & | getFrameNumber () |
unsigned int & | getNumberFrames () |
unsigned int & | getNumberDeleted () |
double & | getDeleteTime () |
unsigned int & | getNumberGenerated () |
double & | getGenerateTime () |
unsigned int & | getNumberApplied () |
double & | getApplyTime () |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
Set whether to use a mutex to ensure ref() and unref() are thread safe. | |
bool | getThreadSafeRefUnref () const |
Get whether a mutex is used to ensure ref() and unref() are thread safe. | |
OpenThreads::Mutex * | getRefMutex () const |
Get the mutex used to ensure thread safety of ref()/unref(). | |
int | ref () const |
Increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
int | unref () const |
Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
int | unref_nodelete () const |
Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
int | referenceCount () const |
Return the number of pointers currently referencing this object. | |
ObserverSet * | getObserverSet () const |
Get the ObserverSet if one is attached, otherwise return NULL. | |
ObserverSet * | getOrCreateObserverSet () const |
Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. | |
void | addObserver (Observer *observer) const |
Add a Observer that is observing this object, notify the Observer when this object gets deleted. | |
void | removeObserver (Observer *observer) const |
Remove Observer that is observing this object. |
Protected Types | |
typedef std::map < TextureProfile, osg::ref_ptr < TextureObjectSet > > | TextureSetMap |
Protected Attributes | |
unsigned int | _contextID |
unsigned int | _numActiveTextureObjects |
unsigned int | _numOrphanedTextureObjects |
unsigned int | _currTexturePoolSize |
unsigned int | _maxTexturePoolSize |
TextureSetMap | _textureSetMap |
unsigned int | _frameNumber |
unsigned int | _numFrames |
unsigned int | _numDeleted |
double | _deleteTime |
unsigned int | _numGenerated |
double | _generateTime |
unsigned int | _numApplied |
double | _applyTime |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
Get the optional global Referenced mutex, this can be shared between all osg::Referenced. | |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
Set whether reference counting should use a mutex for thread safe reference counting. | |
static bool | getThreadSafeReferenceCounting () |
Get whether reference counting is active. | |
static void | setDeleteHandler (DeleteHandler *handler) |
Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. | |
static DeleteHandler * | getDeleteHandler () |
Get a DeleteHandler. | |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
|
protected |
osg::Texture::TextureObjectManager::TextureObjectManager | ( | unsigned int | contextID | ) |
bool osg::Texture::TextureObjectManager::checkConsistency | ( | ) | const |
void osg::Texture::TextureObjectManager::deleteAllTextureObjects | ( | ) |
void osg::Texture::TextureObjectManager::discardAllDeletedTextureObjects | ( | ) |
void osg::Texture::TextureObjectManager::discardAllTextureObjects | ( | ) |
void osg::Texture::TextureObjectManager::flushAllDeletedTextureObjects | ( | ) |
void osg::Texture::TextureObjectManager::flushDeletedTextureObjects | ( | double | currentTime, |
double & | availableTime | ||
) |
TextureObject* osg::Texture::TextureObjectManager::generateTextureObject | ( | const Texture * | texture, |
GLenum | target | ||
) |
TextureObject* osg::Texture::TextureObjectManager::generateTextureObject | ( | const Texture * | texture, |
GLenum | target, | ||
GLint | numMipmapLevels, | ||
GLenum | internalFormat, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth, | ||
GLint | border | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
TextureObjectSet* osg::Texture::TextureObjectManager::getTextureObjectSet | ( | const TextureProfile & | profile | ) |
void osg::Texture::TextureObjectManager::handlePendingOrphandedTextureObjects | ( | ) |
|
inline |
bool osg::Texture::TextureObjectManager::makeSpace | ( | unsigned int | size | ) |
void osg::Texture::TextureObjectManager::newFrame | ( | osg::FrameStamp * | fs | ) |
void osg::Texture::TextureObjectManager::recomputeStats | ( | std::ostream & | out | ) | const |
void osg::Texture::TextureObjectManager::releaseTextureObject | ( | TextureObject * | to | ) |
void osg::Texture::TextureObjectManager::reportStats | ( | std::ostream & | out | ) |
void osg::Texture::TextureObjectManager::resetStats | ( | ) |
|
inline |
void osg::Texture::TextureObjectManager::setMaxTexturePoolSize | ( | unsigned int | size | ) |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
![]() | Generated at Tue Sep 4 2012 16:18:40 for the OpenSceneGraph by doxygen 1.8.1.2. |