osg.RenderBuffer

class osg.RenderBuffer
Represents:c++ class
Wraps:osg::RenderBuffer
Bases:osg.Object

Constructors:

osg.RenderBuffer()

osg.RenderBuffer(int width, int height, GLenum.Value internalFormat, int samples, int colorSamples)

Parameters:
  • width (int) –
  • height (int) –
  • internalFormat (GLenum.Value) –
  • samples (int) –
  • colorSamples (int) –
osg.RenderBuffer(int width, int height, GLenum.Value internalFormat, int samples)

Parameters:
  • width (int) –
  • height (int) –
  • internalFormat (GLenum.Value) –
  • samples (int) –
osg.RenderBuffer(int width, int height, GLenum.Value internalFormat)

Short version. Constructor call with samples and colorSamples equal to 0.

Parameters:
  • width (int) –
  • height (int) –
  • internalFormat (GLenum.Value) –
osg.RenderBuffer(osg.RenderBuffer copy, osg.CopyOp copyop)

Parameters:
osg.RenderBuffer(osg.RenderBuffer copy)

Short version. Constructor call with copyop osg.CopyOp.SHALLOW_COPY.

Parameters:copy (osg.RenderBuffer) –

Methods:

:getWidth()

Return type:int
:getHeight()

Return type:int
:setWidth(int w)

Parameters:w (int) –
:setHeight(int h)

Parameters:h (int) –
:setSize(int w, int h)

Parameters:
  • w (int) –
  • h (int) –
:getInternalFormat()

Return type:GLenum.Value
:setInternalFormat(GLenum.Value format)

Parameters:format (GLenum.Value) –
:getSamples()

Return type:int
:getColorSamples()

Return type:int
:setSamples(int samples)

Parameters:samples (int) –
:setColorSamples(int colorSamples)

Parameters:colorSamples (int) –
:getObjectID(unsigned contextID, osg.GLExtensions ext)

Parameters:
Return type:

unsigned

:compare(osg.RenderBuffer rb)

Parameters:rb (osg.RenderBuffer) –
Return type:int
:resizeGLObjectBuffers(unsigned maxSize)

Resize any per context GLObject buffers to specified size.

Parameters:maxSize (unsigned) –
:releaseGLObjects(osg.State state)

If osg.State is non-zero, this function releases any associated OpenGL objects for the specified osg.GraphicsContext. Otherwise, releases OpenGL objexts for all graphics contexts.

Parameters:state (osg.State) –
:releaseGLObjects()

Short version. releaseGLObjects call with 0 (nil pointer) as argument.

Static Methods:

.getMaxSamples(unsigned contextID, osg.GLExtensions ext)

Parameters:
Return type:

int