diff options
author | Erik Biederstadt <biederstadterik@gmail.com> | 2021-06-08 21:34:50 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-09 10:49:38 +0200 |
commit | 61bd1890d215dccdbdddcc9d541424299d457319 (patch) | |
tree | aded5974792b886b899c0e6acaa3acffddd4d1ad /Userland/Libraries/LibGL/GL | |
parent | 99ffcc28c2b37f1fefc11baf3e29f06ddbdc75f5 (diff) | |
download | serenity-61bd1890d215dccdbdddcc9d541424299d457319.zip |
LibGL: Implement very basic version of glGetFloatv
This is a very basic implementation of glGetfloatv. It will only give a
result when used with GL_MODELVIEW_MATRIX. In the future
we can update and extend it's functionality.
Diffstat (limited to 'Userland/Libraries/LibGL/GL')
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index 62af06aab0..5b63250616 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -201,6 +201,9 @@ extern "C" { #define GL_NEAREST_MIPMAP_LINEAR 0x2602 #define GL_REPEAT 0x2603 +// OpenGL State & GLGet +#define GL_MODELVIEW_MATRIX 0x0BA6 + // // OpenGL typedefs // @@ -294,6 +297,7 @@ GLAPI void glTexImage2D(GLenum target, GLint level, GLint internalFormat, GLsize GLAPI void glTexCoord2f(GLfloat s, GLfloat t); GLAPI void glBindTexture(GLenum target, GLuint texture); GLAPI void glActiveTexture(GLenum texture); +GLAPI void glGetFloatv(GLenum pname, GLfloat* params); #ifdef __cplusplus } |