openscenegraph
|
Public Member Functions | |
RenderBuffer () | |
RenderBuffer (int width, int height, GLenum internalFormat, int samples=0, int colorSamples=0) | |
RenderBuffer (const RenderBuffer ©, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_Object (osg, RenderBuffer) | |
int | getWidth () const |
int | getHeight () const |
void | setWidth (int w) |
void | setHeight (int h) |
void | setSize (int w, int h) |
GLenum | getInternalFormat () const |
void | setInternalFormat (GLenum format) |
int | getSamples () const |
int | getColorSamples () const |
void | setSamples (int samples) |
void | setColorSamples (int colorSamples) |
GLuint | getObjectID (unsigned int contextID, const FBOExtensions *ext) const |
int | compare (const RenderBuffer &rb) const |
virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
virtual void | releaseGLObjects (osg::State *=0) const |
![]() | |
Object () | |
Object (bool threadSafeRefUnref) | |
Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual Object * | cloneType () const =0 |
virtual Object * | clone (const CopyOp &) const =0 |
virtual bool | isSameKindAs (const Object *) const |
virtual const char * | libraryName () const =0 |
virtual const char * | className () const =0 |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
virtual void | setName (const std::string &name) |
void | setName (const char *name) |
const std::string & | getName () const |
void | setDataVariance (DataVariance dv) |
DataVariance | getDataVariance () const |
virtual void | computeDataVariance () |
void | setUserDataContainer (osg::UserDataContainer *udc) |
osg::UserDataContainer * | getUserDataContainer () |
const osg::UserDataContainer * | getUserDataContainer () const |
osg::UserDataContainer * | getOrCreateUserDataContainer () |
virtual void | setUserData (Referenced *obj) |
virtual Referenced * | getUserData () |
virtual const Referenced * | getUserData () const |
template<typename T > | |
bool | getUserValue (const std::string &name, T &value) const |
template<typename T > | |
void | setUserValue (const std::string &name, const T &value) |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
Static Public Member Functions | |
static void | deleteRenderBuffer (unsigned int contextID, GLuint rb) |
static void | flushDeletedRenderBuffers (unsigned int contextID, double currentTime, double &availableTime) |
static void | discardDeletedRenderBuffers (unsigned int contextID) |
static int | getMaxSamples (unsigned int contextID, const FBOExtensions *ext) |
Protected Member Functions | |
virtual | ~RenderBuffer () |
RenderBuffer & | operator= (const RenderBuffer &) |
void | dirtyAll () const |
![]() | |
virtual | ~Object () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
![]() | |
enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
![]() | |
std::string | _name |
DataVariance | _dataVariance |
osg::UserDataContainer * | _userDataContainer |
osg::RenderBuffer::RenderBuffer | ( | ) |
osg::RenderBuffer::RenderBuffer | ( | int | width, |
int | height, | ||
GLenum | internalFormat, | ||
int | samples = 0 , |
||
int | colorSamples = 0 |
||
) |
osg::RenderBuffer::RenderBuffer | ( | const RenderBuffer & | copy, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) |
|
protectedvirtual |
|
inline |
|
static |
Mark internal RenderBuffer for deletion. Deletion requests are queued until they can be executed in the proper GL context.
|
inlineprotected |
References osg::buffered_value< T >::setAllElementsTo().
Referenced by setColorSamples(), setHeight(), setInternalFormat(), setSamples(), setSize(), and setWidth().
|
static |
discard all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. Note, unlike flush no OpenGL calls are made, instead the handles are all removed. this call is useful for when an OpenGL context has been destroyed.
|
static |
flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID.
|
inline |
|
inline |
|
inline |
|
static |
GLuint osg::RenderBuffer::getObjectID | ( | unsigned int | contextID, |
const FBOExtensions * | ext | ||
) | const |
|
inline |
|
inline |
osg::RenderBuffer::META_Object | ( | osg | , |
RenderBuffer | |||
) |
|
inlineprotected |
|
virtual |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. Otherwise, releases OpenGL objexts for all graphics contexts.
Reimplemented from osg::Object.
|
virtual |
Resize any per context GLObject buffers to specified size.
Reimplemented from osg::Object.
|
inline |
References dirtyAll().
|
inline |
References dirtyAll().
|
inline |
References dirtyAll().
|
inline |
References dirtyAll().
|
inline |
References dirtyAll().
|
inline |
References dirtyAll().