mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
glshader: expose opengl handle in getter
https://bugzilla.gnome.org/show_bug.cgi?id=734482
This commit is contained in:
parent
4c65eca7be
commit
d2cac06eeb
2 changed files with 9 additions and 0 deletions
|
@ -212,6 +212,13 @@ gst_gl_shader_get_property (GObject * object,
|
|||
|
||||
}
|
||||
|
||||
int
|
||||
gst_gl_shader_get_program_handle (GstGLShader * shader)
|
||||
{
|
||||
GstGLShaderPrivate *priv = shader->priv;
|
||||
return (int) priv->program_handle;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_gl_shader_class_init (GstGLShaderClass * klass)
|
||||
{
|
||||
|
|
|
@ -67,6 +67,8 @@ GType gst_gl_shader_get_type (void);
|
|||
|
||||
GstGLShader * gst_gl_shader_new (GstGLContext *context);
|
||||
|
||||
int gst_gl_shader_get_program_handle(GstGLShader * shader);
|
||||
|
||||
void gst_gl_shader_set_vertex_source (GstGLShader *shader, const gchar *src);
|
||||
void gst_gl_shader_set_fragment_source (GstGLShader *shader, const gchar *src);
|
||||
const gchar * gst_gl_shader_get_vertex_source (GstGLShader *shader);
|
||||
|
|
Loading…
Reference in a new issue