summaryrefslogtreecommitdiff
path: root/include/pixelflinger2/pixelflinger2_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pixelflinger2/pixelflinger2_interface.h')
-rw-r--r--include/pixelflinger2/pixelflinger2_interface.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/pixelflinger2/pixelflinger2_interface.h b/include/pixelflinger2/pixelflinger2_interface.h
index a141f36..59f625e 100644
--- a/include/pixelflinger2/pixelflinger2_interface.h
+++ b/include/pixelflinger2/pixelflinger2_interface.h
@@ -220,6 +220,9 @@ struct GGLInterface {
// creates empty shader
gl_shader_t * (* ShaderCreate)(const GGLInterface_t * iface, GLenum type);
+
+ void (* ShaderSource)(gl_shader_t * shader, GLsizei count, const char ** string, const int * length);
+
// compiles a shader given glsl; returns GL_TRUE on success; glsl only used during call
GLboolean (* ShaderCompile)(const GGLInterface_t * iface, gl_shader_t * shader,
const char * glsl, const char ** infoLog);
@@ -245,6 +248,10 @@ struct GGLInterface {
// LLVM JIT and set as active program
void (* ShaderUse)(GGLInterface_t * iface, gl_shader_program_t * program);
+ void (* ShaderGetiv)(gl_shader_t * shader, const GLenum pname, GLint * params);
+
+ void (* ShaderProgramGetiv)(gl_shader_program_t * program, const GLenum pname, GLint * params);
+
// bind attribute location before linking
void (* ShaderAttributeBind)(const gl_shader_program_t * program,
GLuint index, const GLchar * name);
@@ -305,6 +312,10 @@ extern "C"
// LLVM JIT and set as active program, also call after gglState change to re-JIT
void GGLShaderUse(void * llvmCtx, const GGLState_t * gglState, gl_shader_program_t * program);
+ void GGLShaderGetiv(gl_shader_t * shader, const GLenum pname, GLint * params);
+
+ void GGLShaderProgramGetiv(gl_shader_program_t * program, const GLenum pname, GLint * params);
+
// bind attribute location before linking
void GGLShaderAttributeBind(const gl_shader_program_t * program,
GLuint index, const GLchar * name);