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/GLContext.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/GLContext.h')
-rw-r--r-- | Userland/Libraries/LibGL/GLContext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLContext.h b/Userland/Libraries/LibGL/GLContext.h index 4d7ec88cd2..3c2b830ad8 100644 --- a/Userland/Libraries/LibGL/GLContext.h +++ b/Userland/Libraries/LibGL/GLContext.h @@ -42,6 +42,11 @@ public: virtual void gl_disable(GLenum) = 0; virtual void gl_front_face(GLenum) = 0; virtual void gl_cull_face(GLenum) = 0; + virtual GLuint gl_gen_lists(GLsizei range) = 0; + virtual void gl_call_list(GLuint list) = 0; + virtual void gl_delete_lists(GLuint list, GLsizei range) = 0; + virtual void gl_end_list(void) = 0; + virtual void gl_new_list(GLuint list, GLenum mode) = 0; virtual void present() = 0; }; |