GstGL.GLSLStage

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GstGL.GLSLStage GstGL.GLSLStage Gst.Object->GstGL.GLSLStage

Subclasses:

None

Methods

Inherited:

Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (context, type)

class

new_default_fragment (context)

class

new_default_vertex (context)

class

new_with_string (context, type, version, profile, str)

class

new_with_strings (context, type, version, profile, str)

compile ()

get_handle ()

get_profile ()

get_shader_type ()

get_version ()

set_strings (version, profile, str)

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

context

GstGL.GLContext

r

parent

Gst.Object

r

Class Details

class GstGL.GLSLStage(**kwargs)
Bases:

Gst.Object

Abstract:

No

Structure:

GstGL.GLSLStageClass

GstGL.GLSLStage holds and represents a single OpenGL shader stage.

classmethod new(context, type)[source]
Parameters:
Returns:

a new GstGL.GLSLStage of the specified type

Return type:

GstGL.GLSLStage

New in version 1.8.

classmethod new_default_fragment(context)[source]
Parameters:

context (GstGL.GLContext) – a GstGL.GLContext

Returns:

a new GstGL.GLSLStage with the default fragment shader

Return type:

GstGL.GLSLStage

New in version 1.8.

classmethod new_default_vertex(context)[source]
Parameters:

context (GstGL.GLContext) – a GstGL.GLContext

Returns:

a new GstGL.GLSLStage with the default vertex shader

Return type:

GstGL.GLSLStage

New in version 1.8.

classmethod new_with_string(context, type, version, profile, str)[source]
Parameters:
Returns:

a new GstGL.GLSLStage of the specified type

Return type:

GstGL.GLSLStage

New in version 1.8.

classmethod new_with_strings(context, type, version, profile, str)[source]
Parameters:
Returns:

a new GstGL.GLSLStage of the specified type

Return type:

GstGL.GLSLStage

New in version 1.8.

compile()[source]
Raises:

GLib.Error

Returns:

whether the compilation succeeded

Return type:

bool

New in version 1.8.

get_handle()[source]
Returns:

The GL handle for this shader stage

Return type:

int

New in version 1.8.

get_profile()[source]
Returns:

The GLSL profile for the current shader stage

Return type:

GstGL.GLSLProfile

New in version 1.8.

get_shader_type()[source]
Returns:

The GL shader type for this shader stage

Return type:

int

New in version 1.8.

get_version()[source]
Returns:

The GLSL version for the current shader stage

Return type:

GstGL.GLSLVersion

New in version 1.8.

set_strings(version, profile, str)[source]
Parameters:
Return type:

bool

Replaces the current shader string with str.

New in version 1.8.