Top |
GstGLSLStage * gst_glsl_stage_new (GstGLContext *context
,guint type
);
Since: 1.8
GstGLSLStage *
gst_glsl_stage_new_default_fragment (GstGLContext *context
);
GstGLSLStage *
gst_glsl_stage_new_default_vertex (GstGLContext *context
);
GstGLSLStage * gst_glsl_stage_new_with_string (GstGLContext *context
,guint type
,GstGLSLVersion version
,GstGLSLProfile profile
,const gchar *str
);
context |
||
type |
the GL enum shader stage type |
|
version |
the GstGLSLVersion |
|
profile |
the GstGLSLProfile |
|
str |
a shader string |
Since: 1.8
GstGLSLStage * gst_glsl_stage_new_with_strings (GstGLContext *context
,guint type
,GstGLSLVersion version
,GstGLSLProfile profile
,gint n_strings
,const gchar **str
);
context |
||
type |
the GL enum shader stage type |
|
version |
the GstGLSLVersion |
|
profile |
the GstGLSLProfile |
|
n_strings |
the number of strings in |
|
str |
an array of strings concatted together to produce a shader. |
[array length=n_strings] |
Since: 1.8
gboolean gst_glsl_stage_set_strings (GstGLSLStage *stage
,GstGLSLVersion version
,GstGLSLProfile profile
,gint n_strings
,const gchar **str
);
Replaces the current shader string with str
.
stage |
||
version |
||
profile |
||
n_strings |
number of strings in |
|
str |
a GLSL shader string. |
[array length=n_strings][transfer none] |
Since: 1.8
gboolean gst_glsl_stage_compile (GstGLSLStage *stage
,GError **error
);
Since: 1.8
GstGLSLProfile
gst_glsl_stage_get_profile (GstGLSLStage *stage
);
Since: 1.8
guint
gst_glsl_stage_get_shader_type (GstGLSLStage *stage
);
Since: 1.8
GstGLSLVersion
gst_glsl_stage_get_version (GstGLSLStage *stage
);
Since: 1.8