1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:57:44 +00:00

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.
This commit is contained in:
Erik Biederstadt 2021-06-08 21:34:50 -06:00 committed by Andreas Kling
parent 99ffcc28c2
commit 61bd1890d2
5 changed files with 43 additions and 0 deletions

View file

@ -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
}