osg.GLExtensions¶
-
class
osg.GLExtensions¶ Represents: c++ class Wraps: osg::GLExtensions Bases: osg.ReferencedMain GLExtensions class for managing OpenGL extensions per graphics context.
Constructors:
-
osg.GLExtensions(unsigned in_contextID)¶ -
Parameters: in_contextID ( unsigned) –
Methods:
-
:
getCurrentProgram()¶ C++-friendly convenience wrapper method.
Return type: unsigned
-
:
getProgramInfoLog(unsigned program)¶ C++-friendly convenience wrapper method.
Parameters: program ( unsigned) –Return type: std.string
-
:
getShaderInfoLog(unsigned shader)¶ C++-friendly convenience wrapper method.
Parameters: shader ( unsigned) –Return type: std.string
-
:
getAttribLocation(std.string attribName)¶ C++-friendly convenience wrapper method.
Parameters: attribName ( std.string) –Return type: unsigned
-
:
getFragDataLocation(std.string fragDataName)¶ C++-friendly convenience wrapper method.
Parameters: fragDataName ( std.string) –Return type: unsigned
-
:
isFrameBufferObjectSupported()¶ osg.FrameBufferObjectrelated method.Return type: bool
-
:
isPackedDepthStencilSupported()¶ osg.FrameBufferObjectrelated method.Return type: bool
-
:
isMultisampledRenderToTextureSupported()¶ osg.FrameBufferObjectrelated method.Return type: bool
-
:
isInvalidateFramebufferSupported()¶ osg.FrameBufferObjectrelated method.Return type: bool
-
:
isRenderbufferMultisampleSupported()¶ osg.FrameBufferObjectrelated method.Return type: bool
-
:
isRenderbufferMultisampleCoverageSupported()¶ osg.FrameBufferObjectrelated method.Return type: bool
-
:
glBindRenderbuffer(GLenum.Value target, unsigned renderbuffer)¶ osg.FrameBufferObjectrelated method.Parameters: - target (
GLenum.Value) – - renderbuffer (
unsigned) –
- target (
-
:
glBindFramebuffer(GLenum.Value target, unsigned framebuffer)¶ osg.FrameBufferObjectrelated method.Parameters: - target (
GLenum.Value) – - framebuffer (
unsigned) –
- target (
-
:
glFramebufferTexture1D(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture, int level)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) – - textarget (
GLenum.Value) – - texture (
unsigned) – - level (
int) –
- target (
-
:
glFramebufferTexture2D(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture, int level)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) – - textarget (
GLenum.Value) – - texture (
unsigned) – - level (
int) –
- target (
-
:
glFramebufferTexture2DMultisample(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture, int level, unsigned samples)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) – - textarget (
GLenum.Value) – - texture (
unsigned) – - level (
int) – - samples (
unsigned) –
- target (
-
:
glFramebufferTexture3D(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture, int level, int layer)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) – - textarget (
GLenum.Value) – - texture (
unsigned) – - level (
int) – - layer (
int) –
- target (
-
:
glFramebufferTexture(GLenum.Value target, GLenum.Value attachment, GLenum.Value textarget, unsigned texture)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) – - textarget (
GLenum.Value) – - texture (
unsigned) –
- target (
-
:
glFramebufferTextureLayer(GLenum.Value target, GLenum.Value attachment, unsigned texture, int level, int layer)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) – - texture (
unsigned) – - level (
int) – - layer (
int) –
- target (
-
:
glFramebufferTextureFace(GLenum.Value target, GLenum.Value attachment, unsigned texture, int level, GLenum.Value face)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) – - texture (
unsigned) – - level (
int) – - face (
GLenum.Value) –
- target (
-
:
glFramebufferRenderbuffer(GLenum.Value target, GLenum.Value attachment, GLenum.Value renderbuffertarget, unsigned renderbuffer)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) – - renderbuffertarget (
GLenum.Value) – - renderbuffer (
unsigned) –
- target (
-
:
glGenerateMipmap(GLenum.Value target)¶ -
Parameters: 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)¶ -
Parameters: - srcX0 (
int) – - srcY0 (
int) – - srcX1 (
int) – - srcY1 (
int) – - dstX0 (
int) – - dstY0 (
int) – - dstX1 (
int) – - dstY1 (
int) – - mask (
unsigned) – - filter (
GLenum.Value) –
- srcX0 (
-
:
glInvalidateFramebuffer(GLenum.Value target, GLenum.Value attachment)¶ -
Parameters: - target (
GLenum.Value) – - attachment (
GLenum.Value) –
- target (
-
:
glFenceSync(GLenum.Value condition, unsigned flags)¶ -
Parameters: - condition (
GLenum.Value) – - flags (
unsigned) –
Return type: - condition (
-
:
glClientWaitSync(GLsync sync, unsigned flags, uint64 timeout)¶ -
Parameters: - sync (
GLsync) – - flags (
unsigned) – - timeout (
uint64) –
Return type: - sync (
-
:
glWaitSync(GLsync sync, unsigned flags, uint64 timeout)¶ -
Parameters: - sync (
GLsync) – - flags (
unsigned) – - timeout (
uint64) –
- sync (
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
falsethen returnsnil. If createIfNotInitalized istruethen the Extensions object is automatically created. However, in this case the extension object only be created with theosg.GraphicsContextassociated with ContextID.Parameters: - in_contextID (
unsigned) – - createIfNotInitalized (
bool) –
Return type: - in_contextID (
-
.
Set(unsigned in_contextID, osg.GLExtensions extensions)¶ Allows users to override the extensions across
osg.GraphicsContexts. 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.Parameters: - in_contextID (
unsigned) – - extensions (
osg.GLExtensions) –
- in_contextID (
-