GstGLShader

GstGLShader

Functions

Properties

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GstObject
            ╰── GstGLShader

Description

Functions

gst_gl_shader_new ()

GstGLShader *
gst_gl_shader_new (GstGLContext *context);

Note: must be called in the GL thread

Parameters

context

a GstGLContext

 

Returns

a new empty shader .

[transfer full]


gst_gl_shader_get_program_handle ()

int
gst_gl_shader_get_program_handle (GstGLShader *shader);

Parameters

shader

a GstGLShader

 

Returns

the GL program handle for this shader


gst_gl_shader_release ()

void
gst_gl_shader_release (GstGLShader *shader);

Releases the shader and stages.

Note: must be called in the GL thread

Parameters

shader

a GstGLShader

 

gst_gl_shader_use ()

void
gst_gl_shader_use (GstGLShader *shader);

Mark's shader as being used for the next GL draw command.

Note: must be called in the GL thread and shader must have been linked.

Parameters

shader

a GstGLShader

 

gst_gl_shader_set_uniform_1i ()

void
gst_gl_shader_set_uniform_1i (GstGLShader *shader,
                              const gchar *name,
                              gint value);

gst_gl_shader_set_uniform_1f ()

void
gst_gl_shader_set_uniform_1f (GstGLShader *shader,
                              const gchar *name,
                              gfloat value);

gst_gl_shader_set_uniform_1fv ()

void
gst_gl_shader_set_uniform_1fv (GstGLShader *shader,
                               const gchar *name,
                               guint count,
                               gfloat *value);

gst_gl_shader_set_uniform_1iv ()

void
gst_gl_shader_set_uniform_1iv (GstGLShader *shader,
                               const gchar *name,
                               guint count,
                               gint *value);

gst_gl_shader_set_uniform_2f ()

void
gst_gl_shader_set_uniform_2f (GstGLShader *shader,
                              const gchar *name,
                              gfloat v0,
                              gfloat v1);

gst_gl_shader_set_uniform_2fv ()

void
gst_gl_shader_set_uniform_2fv (GstGLShader *shader,
                               const gchar *name,
                               guint count,
                               gfloat *value);

gst_gl_shader_set_uniform_2i ()

void
gst_gl_shader_set_uniform_2i (GstGLShader *shader,
                              const gchar *name,
                              gint v0,
                              gint v1);

gst_gl_shader_set_uniform_2iv ()

void
gst_gl_shader_set_uniform_2iv (GstGLShader *shader,
                               const gchar *name,
                               guint count,
                               gint *value);

gst_gl_shader_set_uniform_3f ()

void
gst_gl_shader_set_uniform_3f (GstGLShader *shader,
                              const gchar *name,
                              gfloat v0,
                              gfloat v1,
                              gfloat v2);

gst_gl_shader_set_uniform_3fv ()

void
gst_gl_shader_set_uniform_3fv (GstGLShader *shader,
                               const gchar *name,
                               guint count,
                               gfloat *value);

gst_gl_shader_set_uniform_3i ()

void
gst_gl_shader_set_uniform_3i (GstGLShader *shader,
                              const gchar *name,
                              gint v0,
                              gint v1,
                              gint v2);

gst_gl_shader_set_uniform_3iv ()

void
gst_gl_shader_set_uniform_3iv (GstGLShader *shader,
                               const gchar *name,
                               guint count,
                               gint *value);

gst_gl_shader_set_uniform_4f ()

void
gst_gl_shader_set_uniform_4f (GstGLShader *shader,
                              const gchar *name,
                              gfloat v0,
                              gfloat v1,
                              gfloat v2,
                              gfloat v3);

gst_gl_shader_set_uniform_4fv ()

void
gst_gl_shader_set_uniform_4fv (GstGLShader *shader,
                               const gchar *name,
                               guint count,
                               gfloat *value);

gst_gl_shader_set_uniform_4i ()

void
gst_gl_shader_set_uniform_4i (GstGLShader *shader,
                              const gchar *name,
                              gint v0,
                              gint v1,
                              gint v2,
                              gint v3);

gst_gl_shader_set_uniform_4iv ()

void
gst_gl_shader_set_uniform_4iv (GstGLShader *shader,
                               const gchar *name,
                               guint count,
                               gint *value);

gst_gl_shader_set_uniform_matrix_2fv ()

void
gst_gl_shader_set_uniform_matrix_2fv (GstGLShader *shader,
                                      const gchar *name,
                                      gint count,
                                      gboolean transpose,
                                      const gfloat *value);

gst_gl_shader_set_uniform_matrix_2x3fv ()

void
gst_gl_shader_set_uniform_matrix_2x3fv
                               (GstGLShader *shader,
                                const gchar *name,
                                gint count,
                                gboolean transpose,
                                const gfloat *value);

gst_gl_shader_set_uniform_matrix_2x4fv ()

void
gst_gl_shader_set_uniform_matrix_2x4fv
                               (GstGLShader *shader,
                                const gchar *name,
                                gint count,
                                gboolean transpose,
                                const gfloat *value);

gst_gl_shader_set_uniform_matrix_3fv ()

void
gst_gl_shader_set_uniform_matrix_3fv (GstGLShader *shader,
                                      const gchar *name,
                                      gint count,
                                      gboolean transpose,
                                      const gfloat *value);

gst_gl_shader_set_uniform_matrix_3x2fv ()

void
gst_gl_shader_set_uniform_matrix_3x2fv
                               (GstGLShader *shader,
                                const gchar *name,
                                gint count,
                                gboolean transpose,
                                const gfloat *value);

gst_gl_shader_set_uniform_matrix_3x4fv ()

void
gst_gl_shader_set_uniform_matrix_3x4fv
                               (GstGLShader *shader,
                                const gchar *name,
                                gint count,
                                gboolean transpose,
                                const gfloat *value);

gst_gl_shader_set_uniform_matrix_4fv ()

void
gst_gl_shader_set_uniform_matrix_4fv (GstGLShader *shader,
                                      const gchar *name,
                                      gint count,
                                      gboolean transpose,
                                      const gfloat *value);

gst_gl_shader_set_uniform_matrix_4x2fv ()

void
gst_gl_shader_set_uniform_matrix_4x2fv
                               (GstGLShader *shader,
                                const gchar *name,
                                gint count,
                                gboolean transpose,
                                const gfloat *value);

gst_gl_shader_set_uniform_matrix_4x3fv ()

void
gst_gl_shader_set_uniform_matrix_4x3fv
                               (GstGLShader *shader,
                                const gchar *name,
                                gint count,
                                gboolean transpose,
                                const gfloat *value);

gst_gl_shader_get_attribute_location ()

gint
gst_gl_shader_get_attribute_location (GstGLShader *shader,
                                      const gchar *name);

gst_gl_shader_bind_attribute_location ()

void
gst_gl_shader_bind_attribute_location (GstGLShader *shader,
                                       guint index,
                                       const gchar *name);

Types and Values

GstGLShader

typedef struct _GstGLShader GstGLShader;

Property Details

The “linked” property

  “linked”                   gboolean

Shader link status.

Flags: Read

Default value: FALSE