GstGL.GLSLStage¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
context |
r |
||
parent |
r |
Class Details¶
- class GstGL.GLSLStage(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GstGL.GLSLStage
holds and represents a single OpenGL shader stage.- classmethod new(context, type)[source]¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
type (
int
) – the GL enum shader stage type
- Returns:
a new
GstGL.GLSLStage
of the specified type- Return type:
New in version 1.8.
- classmethod new_default_fragment(context)[source]¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
- Returns:
a new
GstGL.GLSLStage
with the default fragment shader- Return type:
New in version 1.8.
- classmethod new_default_vertex(context)[source]¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
- Returns:
a new
GstGL.GLSLStage
with the default vertex shader- Return type:
New in version 1.8.
- classmethod new_with_string(context, type, version, profile, str)[source]¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
type (
int
) – the GL enum shader stage typeversion (
GstGL.GLSLVersion
) – theGstGL.GLSLVersion
profile (
GstGL.GLSLProfile
) – theGstGL.GLSLProfile
str (
str
) – a shader string
- Returns:
a new
GstGL.GLSLStage
of the specified type- Return type:
New in version 1.8.
- classmethod new_with_strings(context, type, version, profile, str)[source]¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
type (
int
) – the GL enum shader stage typeversion (
GstGL.GLSLVersion
) – theGstGL.GLSLVersion
profile (
GstGL.GLSLProfile
) – theGstGL.GLSLProfile
str ([
str
]) – an array of strings concatted together to produce a shader
- Returns:
a new
GstGL.GLSLStage
of the specified type- Return type:
New in version 1.8.
- compile()[source]¶
- Raises:
- Returns:
whether the compilation succeeded
- Return type:
New in version 1.8.
- get_profile()[source]¶
- Returns:
The GLSL profile for the current shader stage
- Return type:
New in version 1.8.
- get_shader_type()[source]¶
- Returns:
The GL shader type for this shader stage
- Return type:
New in version 1.8.
- get_version()[source]¶
- Returns:
The GLSL version for the current shader stage
- Return type:
New in version 1.8.
- set_strings(version, profile, str)[source]¶
- Parameters:
version (
GstGL.GLSLVersion
) – aGstGL.GLSLVersion
profile (
GstGL.GLSLProfile
) – aGstGL.GLSLProfile
str ([
str
]) – a GLSL shader string
- Return type:
Replaces the current shader string with str.
New in version 1.8.