mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
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.
This commit is contained in:
parent
02de813950
commit
720d21411b
6 changed files with 292 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue