OSG
3.4.0
|
#include <FrameBufferObject.h>
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 GLExtensions *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 |
std::string | getCompoundClassName () const |
virtual Node * | asNode () |
virtual const Node * | asNode () const |
virtual NodeVisitor * | asNodeVisitor () |
virtual const NodeVisitor * | asNodeVisitor () const |
virtual StateAttribute * | asStateAttribute () |
virtual const StateAttribute * | asStateAttribute () const |
virtual Uniform * | asUniform () |
virtual const Uniform * | asUniform () const |
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) |
template<typename T > | |
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
![]() | |
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 GLExtensions *ext) |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
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 |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Definition at line 126 of file FrameBufferObject.h.
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 |
Definition at line 262 of file FrameBufferObject.h.
|
static |
Mark internal RenderBuffer for deletion. Deletion requests are queued until they can be executed in the proper GL context.
|
inlineprotected |
Definition at line 257 of file FrameBufferObject.h.
|
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 |
Definition at line 240 of file FrameBufferObject.h.
|
inline |
Definition at line 200 of file FrameBufferObject.h.
|
inline |
Definition at line 224 of file FrameBufferObject.h.
|
static |
GLuint osg::RenderBuffer::getObjectID | ( | unsigned int | contextID, |
const GLExtensions * | ext | ||
) | const |
|
inline |
Definition at line 235 of file FrameBufferObject.h.
|
inline |
Definition at line 195 of file FrameBufferObject.h.
osg::RenderBuffer::META_Object | ( | osg | , |
RenderBuffer | |||
) |
|
inlineprotected |
Definition at line 176 of file FrameBufferObject.h.
|
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |