mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +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
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue