aboutsummaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-19 20:16:34 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-19 20:16:34 +0200
commit8731a00681a2cf99965203849bd7ba8f6c09df9a (patch)
tree2f7a3db3ec862e50c9e6e9154e575cc3c88bd293 /src/gl.c
parentf1ede6cfa5cc2af2e7f93e29f2311e9ece7f41c4 (diff)
Add mgl_texture_init_reference_existing_gl_texture to easily create a texture and then a sprite from an existing opengl texture
Diffstat (limited to 'src/gl.c')
-rw-r--r--src/gl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gl.c b/src/gl.c
index 7c9a6bc..bb2e90b 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -29,6 +29,7 @@ static int mgl_gl_load_gl(mgl_gl *self) {
{ (void**)&self->glBlendFunc, "glBlendFunc" },
{ (void**)&self->glGenTextures, "glGenTextures" },
{ (void**)&self->glDeleteTextures, "glDeleteTextures" },
+ { (void**)&self->glGetTexLevelParameteriv, "glGetTexLevelParameteriv" },
{ (void**)&self->glTexImage2D, "glTexImage2D" },
{ (void**)&self->glTexSubImage2D, "glTexSubImage2D" },
{ (void**)&self->glBindTexture, "glBindTexture" },