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.GLSLStageholds and represents a single OpenGL shader stage.- classmethod new(context, type)[source]¶
- Parameters:
context (
GstGL.GLContext) – aGstGL.GLContexttype (
int) – the GL enum shader stage type
- Returns:
a new
GstGL.GLSLStageof 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.GLSLStagewith 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.GLSLStagewith 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.GLContexttype (
int) – the GL enum shader stage typeversion (
GstGL.GLSLVersion) – theGstGL.GLSLVersionprofile (
GstGL.GLSLProfile) – theGstGL.GLSLProfilestr (
str) – a shader string
- Returns:
a new
GstGL.GLSLStageof 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.GLContexttype (
int) – the GL enum shader stage typeversion (
GstGL.GLSLVersion) – theGstGL.GLSLVersionprofile (
GstGL.GLSLProfile) – theGstGL.GLSLProfilestr ([
str]) – an array of strings concatted together to produce a shader
- Returns:
a new
GstGL.GLSLStageof 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.GLSLVersionprofile (
GstGL.GLSLProfile) – aGstGL.GLSLProfilestr ([
str]) – a GLSL shader string
- Return type:
Replaces the current shader string with str.
New in version 1.8.