|
Packit |
971217 |
/*
|
|
Packit |
971217 |
* GStreamer
|
|
Packit |
971217 |
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef __GST_GLSL_PRIVATE_H__
|
|
Packit |
971217 |
#define __GST_GLSL_PRIVATE_H__
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gl/gstgl_fwd.h>
|
|
Packit |
971217 |
#include <gst/gl/gstglfuncs.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_BEGIN_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef GL_COMPILE_STATUS
|
|
Packit |
971217 |
#define GL_COMPILE_STATUS 0x8B81
|
|
Packit |
971217 |
#endif
|
|
Packit |
971217 |
#ifndef GLhandleARB
|
|
Packit |
971217 |
#define GLhandleARB GLuint
|
|
Packit |
971217 |
#endif
|
|
Packit |
971217 |
|
|
Packit |
971217 |
typedef struct _GstGLSLFuncs
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
gboolean initialized;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GLuint (GSTGLAPI *CreateProgram) (void);
|
|
Packit |
971217 |
void (GSTGLAPI *DeleteProgram) (GLuint program);
|
|
Packit |
971217 |
void (GSTGLAPI *UseProgram) (GLuint program);
|
|
Packit |
971217 |
void (GSTGLAPI *GetAttachedShaders) (GLuint program, GLsizei maxcount,
|
|
Packit |
971217 |
GLsizei * count, GLuint * shaders);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GLuint (GSTGLAPI *CreateShader) (GLenum shaderType);
|
|
Packit |
971217 |
void (GSTGLAPI *DeleteShader) (GLuint shader);
|
|
Packit |
971217 |
void (GSTGLAPI *AttachShader) (GLuint program, GLuint shader);
|
|
Packit |
971217 |
void (GSTGLAPI *DetachShader) (GLuint program, GLuint shader);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void (GSTGLAPI *GetShaderiv) (GLuint program, GLenum pname, GLint * params);
|
|
Packit |
971217 |
void (GSTGLAPI *GetProgramiv) (GLuint program, GLenum pname, GLint * params);
|
|
Packit |
971217 |
void (GSTGLAPI *GetShaderInfoLog) (GLuint shader, GLsizei maxLength,
|
|
Packit |
971217 |
GLsizei * length, char *log);
|
|
Packit |
971217 |
void (GSTGLAPI *GetProgramInfoLog) (GLuint shader, GLsizei maxLength,
|
|
Packit |
971217 |
GLsizei * length, char *log);
|
|
Packit |
971217 |
} GstGLSLFuncs;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_GNUC_INTERNAL gboolean _gst_glsl_funcs_fill (GstGLSLFuncs * vtable, GstGLContext * context);
|
|
Packit |
971217 |
G_GNUC_INTERNAL const gchar * _gst_glsl_shader_string_find_version (const gchar * str);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_GNUC_INTERNAL gchar *
|
|
Packit |
971217 |
_gst_glsl_mangle_shader (const gchar * str, guint shader_type, GstGLTextureTarget from,
|
|
Packit |
971217 |
GstGLTextureTarget to, GstGLContext * context, GstGLSLVersion * version, GstGLSLProfile * profile);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_END_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* __GST_GLSL_PRIVATE_H__ */
|