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) -
Параметры: - width (
int
) – - height (
int
) – - internalFormat (
GLenum.Value
) – - samples (
int
) – - colorSamples (
int
) –
- width (
-
osg.
RenderBuffer
(int width, int height, GLenum.Value internalFormat, int samples) -
Параметры: - 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
.Параметры: - width (
int
) – - height (
int
) – - internalFormat (
GLenum.Value
) –
- width (
-
osg.
RenderBuffer
(osg.RenderBuffer copy, osg.CopyOp copyop) -
Параметры: - copy (
osg.RenderBuffer
) – - copyop (
osg.CopyOp
) –
- copy (
-
osg.
RenderBuffer
(osg.RenderBuffer copy) Short version. Constructor call with copyop
osg.CopyOp.SHALLOW_COPY
.Параметры: copy ( osg.RenderBuffer
) –
Methods:
-
:
getWidth
()¶ -
Тип результата: int
-
:
getHeight
()¶ -
Тип результата: int
-
:
setWidth
(int w)¶ -
Параметры: w ( int
) –
-
:
setHeight
(int h)¶ -
Параметры: h ( int
) –
-
:
setSize
(int w, int h)¶ -
Параметры: - w (
int
) – - h (
int
) –
- w (
-
:
getInternalFormat
()¶ -
Тип результата: GLenum.Value
-
:
setInternalFormat
(GLenum.Value format)¶ -
Параметры: format ( GLenum.Value
) –
-
:
getSamples
()¶ -
Тип результата: int
-
:
getColorSamples
()¶ -
Тип результата: int
-
:
setSamples
(int samples)¶ -
Параметры: samples ( int
) –
-
:
setColorSamples
(int colorSamples)¶ -
Параметры: colorSamples ( int
) –
-
:
getObjectID
(unsigned contextID, osg.GLExtensions ext)¶ -
Параметры: - contextID (
unsigned
) – - ext (
osg.GLExtensions
) –
Тип результата: unsigned
- contextID (
-
:
compare
(osg.RenderBuffer rb)¶ -
Параметры: rb ( osg.RenderBuffer
) –Тип результата: int
-
:
resizeGLObjectBuffers
(unsigned maxSize)¶ Resize any per context GLObject buffers to specified size.
Параметры: maxSize ( unsigned
) –
-
:
releaseGLObjects
(osg.State state)¶ If
osg.State
is non-zero, this function releases any associated OpenGL objects for the specifiedosg.GraphicsContext
. Otherwise, releases OpenGL objexts for all graphics contexts.Параметры: state ( osg.State
) –
-
:
releaseGLObjects
() Short version.
releaseGLObjects
call with0
(nil pointer) as argument.
Static Methods:
-
.
getMaxSamples
(unsigned contextID, osg.GLExtensions ext)¶ -
Параметры: - contextID (
unsigned
) – - ext (
osg.GLExtensions
) –
Тип результата: int
- contextID (
-