diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-05-09 08:25:15 +0430 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-11 14:09:17 +0100 |
commit | 720d21411ba2187d2cc45f34f2471fb07c12ce97 (patch) | |
tree | 38c5556a2803aae37b7532326f79a2b2e4427320 /Userland/Libraries/LibGL/GL/gl.h | |
parent | 02de813950fc7c6858f645f39e38c7aeee5058fe (diff) | |
download | serenity-720d21411ba2187d2cc45f34f2471fb07c12ce97.zip |
LibGL: Implement glGenLists and a few friends
This commit implements glGenLists(), glNewList(), glDeleteLists(), and
glCallList().
The 'compiled' records are implemented as a vector of member function
pointers and tuples containing their arguments, and a mechanism is
implemented to allow the recorded calls to copy-capture values from the
time of the call; this is currently only used with glLoadMatrix.
Diffstat (limited to 'Userland/Libraries/LibGL/GL/gl.h')
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index 05d861c999..1896caaa35 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -61,6 +61,10 @@ extern "C" { #define GL_CW 0x0900 #define GL_CCW 0x0901 +// Listing enums +#define GL_COMPILE 0x1300 +#define GL_COMPILE_AND_EXECUTE 0x1301 + // // OpenGL typedefs // @@ -115,6 +119,11 @@ GLAPI void glEnable(GLenum cap); GLAPI void glDisable(GLenum cap); GLAPI void glCullFace(GLenum mode); GLAPI void glFrontFace(GLenum mode); +GLuint glGenLists(GLsizei range); +void glCallList(GLuint list); +void glDeleteLists(GLuint list, GLsizei range); +void glEndList(void); +void glNewList(GLuint list, GLenum mode); #ifdef __cplusplus } |