osg.GLExtensions¶
- class osg.GLExtensions¶
- Represents
c++ class
- Wraps
osg::GLExtensions
- Bases
Main GLExtensions class for managing OpenGL extensions per graphics context.
Constructors:
- osg.GLExtensions(unsigned in_contextID)¶
-
- Параметры
in_contextID (
unsigned
) –
Methods:
- :getCurrentProgram()¶
C++-friendly convenience wrapper method.
- Тип результата
unsigned
- :getProgramInfoLog(unsigned program)¶
C++-friendly convenience wrapper method.
- Параметры
program (
unsigned
) –- Тип результата
- :getShaderInfoLog(unsigned shader)¶
C++-friendly convenience wrapper method.
- Параметры
shader (
unsigned
) –- Тип результата
- :getAttribLocation(std.string attribName)¶
C++-friendly convenience wrapper method.
- Параметры
attribName (
std.string
) –- Тип результата
unsigned
- :getFragDataLocation(std.string fragDataName)¶
C++-friendly convenience wrapper method.
- Параметры
fragDataName (
std.string
) –- Тип результата
unsigned
- :isFrameBufferObjectSupported()¶
osg.FrameBufferObject
related method.- Тип результата
bool
- :isPackedDepthStencilSupported()¶
osg.FrameBufferObject
related method.- Тип результата
bool
- :isMultisampledRenderToTextureSupported()¶
osg.FrameBufferObject
related method.- Тип результата
bool
- :isInvalidateFramebufferSupported()¶
osg.FrameBufferObject
related method.- Тип результата
bool
- :isRenderbufferMultisampleSupported()¶
osg.FrameBufferObject
related method.- Тип результата
bool
- :isRenderbufferMultisampleCoverageSupported()¶
osg.FrameBufferObject
related method.- Тип результата
bool
- :glBindRenderbuffer(GLenum.Value target, unsigned renderbuffer)¶
osg.FrameBufferObject
related method.- Параметры
target (
GLenum.Value
) –renderbuffer (
unsigned
) –
- :glBindFramebuffer(GLenum.Value target, unsigned framebuffer)¶
osg.FrameBufferObject
related method.- Параметры
target (
GLenum.Value
) –framebuffer (
unsigned
) –
- :glFramebufferTexture1D(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture, int level)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –textarget (
GLenum.Value
) –texture (
unsigned
) –level (
int
) –
- :glFramebufferTexture2D(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture, int level)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –textarget (
GLenum.Value
) –texture (
unsigned
) –level (
int
) –
- :glFramebufferTexture2DMultisample(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture, int level, unsigned samples)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –textarget (
GLenum.Value
) –texture (
unsigned
) –level (
int
) –samples (
unsigned
) –
- :glFramebufferTexture3D(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture, int level, int layer)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –textarget (
GLenum.Value
) –texture (
unsigned
) –level (
int
) –layer (
int
) –
- :glFramebufferTexture(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –textarget (
GLenum.Value
) –texture (
unsigned
) –
- :glFramebufferTextureLayer(GLenum.Value target, GLenum.Value attachment, unsigned texture, int level, int layer)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –texture (
unsigned
) –level (
int
) –layer (
int
) –
- :glFramebufferTextureFace(GLenum.Value target, GLenum.Value attachment, unsigned texture, int level, GLenum.Value face)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –texture (
unsigned
) –level (
int
) –face (
GLenum.Value
) –
- :glFramebufferRenderbuffer(GLenum.Value target, GLenum.Value attachment, GLenum.Value renderbuffertarget, unsigned renderbuffer)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –renderbuffertarget (
GLenum.Value
) –renderbuffer (
unsigned
) –
- :glGenerateMipmap(GLenum.Value target)¶
-
- Параметры
target (
GLenum.Value
) –
- :glBlitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, unsigned mask, GLenum.Value filter)¶
-
- Параметры
srcX0 (
int
) –srcY0 (
int
) –srcX1 (
int
) –srcY1 (
int
) –dstX0 (
int
) –dstY0 (
int
) –dstX1 (
int
) –dstY1 (
int
) –mask (
unsigned
) –filter (
GLenum.Value
) –
- :glInvalidateFramebuffer(GLenum.Value target, GLenum.Value attachment)¶
-
- Параметры
target (
GLenum.Value
) –attachment (
GLenum.Value
) –
Static Methods:
- .Get(unsigned in_contextID, bool createIfNotInitalized)¶
Function to call to get the extension of a specified context. If the Exentsion object for that context has not yet been created then and the createIfNotInitalized flag been set to
false
then returnsnil
. If createIfNotInitalized istrue
then the Extensions object is automatically created. However, in this case the extension object only be created with theosg.GraphicsContext
associated with ContextID.- Параметры
in_contextID (
unsigned
) –createIfNotInitalized (
bool
) –
- Тип результата
- .Set(unsigned in_contextID, osg.GLExtensions extensions)¶
Allows users to override the extensions across
osg.GraphicsContext
s. Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions.- Параметры
in_contextID (
unsigned
) –extensions (
osg.GLExtensions
) –