OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
osg::RenderBuffer Class Reference

#include <FrameBufferObject.h>

Inheritance diagram for osg::RenderBuffer:
Inheritance graph
[legend]
Collaboration diagram for osg::RenderBuffer:
Collaboration graph
[legend]

Public Member Functions

 RenderBuffer ()
 
 RenderBuffer (int width, int height, GLenum internalFormat, int samples=0, int colorSamples=0)
 
 RenderBuffer (const RenderBuffer &copy, const CopyOp &copyop=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
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (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 NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () 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::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () 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
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () 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 Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Protected Member Functions

virtual ~RenderBuffer ()
 
RenderBufferoperator= (const RenderBuffer &)
 
void dirtyAll () const
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

Definition at line 126 of file FrameBufferObject.h.

Constructor & Destructor Documentation

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 
)
virtual osg::RenderBuffer::~RenderBuffer ( )
protectedvirtual

Member Function Documentation

int osg::RenderBuffer::compare ( const RenderBuffer rb) const
inline

Definition at line 262 of file FrameBufferObject.h.

static void osg::RenderBuffer::deleteRenderBuffer ( unsigned int  contextID,
GLuint  rb 
)
static

Mark internal RenderBuffer for deletion. Deletion requests are queued until they can be executed in the proper GL context.

void osg::RenderBuffer::dirtyAll ( ) const
inlineprotected

Definition at line 257 of file FrameBufferObject.h.

Here is the call graph for this function:

Here is the caller graph for this function:

static void osg::RenderBuffer::discardDeletedRenderBuffers ( unsigned int  contextID)
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 void osg::RenderBuffer::flushDeletedRenderBuffers ( unsigned int  contextID,
double  currentTime,
double &  availableTime 
)
static

flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID.

int osg::RenderBuffer::getColorSamples ( ) const
inline

Definition at line 240 of file FrameBufferObject.h.

int osg::RenderBuffer::getHeight ( ) const
inline

Definition at line 200 of file FrameBufferObject.h.

GLenum osg::RenderBuffer::getInternalFormat ( ) const
inline

Definition at line 224 of file FrameBufferObject.h.

static int osg::RenderBuffer::getMaxSamples ( unsigned int  contextID,
const GLExtensions ext 
)
static
GLuint osg::RenderBuffer::getObjectID ( unsigned int  contextID,
const GLExtensions ext 
) const
int osg::RenderBuffer::getSamples ( ) const
inline

Definition at line 235 of file FrameBufferObject.h.

int osg::RenderBuffer::getWidth ( ) const
inline

Definition at line 195 of file FrameBufferObject.h.

osg::RenderBuffer::META_Object ( osg  ,
RenderBuffer   
)
RenderBuffer& osg::RenderBuffer::operator= ( const RenderBuffer )
inlineprotected

Definition at line 176 of file FrameBufferObject.h.

virtual void osg::RenderBuffer::releaseGLObjects ( osg::State = 0) const
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 void osg::RenderBuffer::resizeGLObjectBuffers ( unsigned int  maxSize)
virtual

Resize any per context GLObject buffers to specified size.

Reimplemented from osg::Object.

void osg::RenderBuffer::setColorSamples ( int  colorSamples)
inline

Definition at line 251 of file FrameBufferObject.h.

Here is the call graph for this function:

void osg::RenderBuffer::setHeight ( int  h)
inline

Definition at line 211 of file FrameBufferObject.h.

Here is the call graph for this function:

void osg::RenderBuffer::setInternalFormat ( GLenum  format)
inline

Definition at line 229 of file FrameBufferObject.h.

Here is the call graph for this function:

void osg::RenderBuffer::setSamples ( int  samples)
inline

Definition at line 245 of file FrameBufferObject.h.

Here is the call graph for this function:

void osg::RenderBuffer::setSize ( int  w,
int  h 
)
inline

Definition at line 217 of file FrameBufferObject.h.

Here is the call graph for this function:

void osg::RenderBuffer::setWidth ( int  w)
inline

Definition at line 205 of file FrameBufferObject.h.

Here is the call graph for this function:


The documentation for this class was generated from the following file: