diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-01-10 02:29:20 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-11 23:47:42 +0100 |
commit | e2f79c8b5f337225b65a508ec4fe0edfde3a3c67 (patch) | |
tree | 08fb9c6dea16688b64373d60561a2de7c635dba1 | |
parent | eea1b95ead9e80ccaac6b4d87fb11ab9cee68909 (diff) | |
download | serenity-e2f79c8b5f337225b65a508ec4fe0edfde3a3c67.zip |
LibGL: Implement `glTexEnvi`
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGL/GLTexture.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index a0ce9491aa..615d830643 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -544,6 +544,7 @@ GLAPI void glTexCoord4fv(const GLfloat* v); GLAPI void glTexParameteri(GLenum target, GLenum pname, GLint param); GLAPI void glTexParameterf(GLenum target, GLenum pname, GLfloat param); GLAPI void glTexEnvf(GLenum target, GLenum pname, GLfloat param); +GLAPI void glTexEnvi(GLenum target, GLenum pname, GLint param); GLAPI void glBindTexture(GLenum target, GLuint texture); GLAPI void glActiveTexture(GLenum texture); GLAPI void glGetBooleanv(GLenum pname, GLboolean* data); diff --git a/Userland/Libraries/LibGL/GLTexture.cpp b/Userland/Libraries/LibGL/GLTexture.cpp index f9281de007..181a6c140a 100644 --- a/Userland/Libraries/LibGL/GLTexture.cpp +++ b/Userland/Libraries/LibGL/GLTexture.cpp @@ -69,6 +69,11 @@ void glTexEnvf(GLenum target, GLenum pname, GLfloat param) g_gl_context->gl_tex_env(target, pname, param); } +void glTexEnvi(GLenum target, GLenum pname, GLint param) +{ + g_gl_context->gl_tex_env(target, pname, param); +} + void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) { g_gl_context->gl_copy_tex_image_2d(target, level, internalformat, x, y, width, height, border); |