osg.RenderBuffer¶
-
class
osg.RenderBuffer¶ Represents: c++ class Wraps: osg::RenderBuffer Bases: osg.ObjectConstructors:
-
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) –
- width (
-
osg.RenderBuffer(int width, int height, GLenum.Value internalFormat, int samples) -
Parameters: - width (
int) – - height (
int) – - internalFormat (
GLenum.Value) – - samples (
int) –
- width (
-
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) –
- width (
-
osg.RenderBuffer(osg.RenderBuffer copy, osg.CopyOp copyop) -
Parameters: - copy (
osg.RenderBuffer) – - copyop (
osg.CopyOp) –
- copy (
-
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) –
- w (
-
:
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: - contextID (
unsigned) – - ext (
osg.GLExtensions) –
Return type: unsigned - contextID (
-
:
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.Stateis non-zero, this function releases any associated OpenGL objects for the specifiedosg.GraphicsContext. Otherwise, releases OpenGL objexts for all graphics contexts.Parameters: state ( osg.State) –
-
:
releaseGLObjects() Short version.
releaseGLObjectscall with0(nil pointer) as argument.
Static Methods:
-
.
getMaxSamples(unsigned contextID, osg.GLExtensions ext)¶ -
Parameters: - contextID (
unsigned) – - ext (
osg.GLExtensions) –
Return type: int - contextID (
-