aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/gl.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-22 03:35:27 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-22 03:35:27 +0200
commitfaa74e2c942102a9b1aa215a913fddf422714d7e (patch)
treeea037970d5fec74586f1a8a637d84f696b3c48be /include/mgl/gl.h
parentf02a283c06c51cb29f79e89754b31ffd6952d2e6 (diff)
Add shader
Diffstat (limited to 'include/mgl/gl.h')
-rw-r--r--include/mgl/gl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h
index 8a09e3e..a13406e 100644
--- a/include/mgl/gl.h
+++ b/include/mgl/gl.h
@@ -52,6 +52,21 @@ typedef struct {
void (*glVertexPointer)(int size, unsigned int type, int stride, const void *ptr);
void (*glColorPointer)(int size, unsigned int type, int stride, const void *ptr);
void (*glTexCoordPointer)(int size, unsigned int type, int stride, const void *ptr);
+ void (*glCompileShader)(unsigned int shader);
+ unsigned int (*glCreateProgram)(void);
+ unsigned int (*glCreateShader)(unsigned int type);
+ void (*glDeleteProgram)(unsigned int program);
+ void (*glDeleteShader)(unsigned int shader);
+ void (*glGetShaderiv)(unsigned int shader, unsigned int pname, int *params);
+ void (*glGetShaderInfoLog)(unsigned int shader, int bufSize, int *length, char *infoLog);
+ void (*glGetProgramiv)(unsigned int program, unsigned int pname, int *params);
+ void (*glGetProgramInfoLog)(unsigned int program, int bufSize, int *length, char *infoLog);
+ void (*glLinkProgram)(unsigned int program);
+ void (*glShaderSource)(unsigned int shader, int count, const char *const*string, const int *length);
+ void (*glUseProgram)(unsigned int program);
+ void (*glAttachShader)(unsigned int program, unsigned int shader);
+ int (*glGetUniformLocation)(unsigned int program, const char *name);
+ void (*glUniform2fv)(int location, int count, const float *value);
/* Optional*/
void (*glXSwapIntervalEXT)(Display * dpy, GLXDrawable drawable, int interval);