mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:27:45 +00:00
LibGL: Implement glGetError and underlying function
This implements `glGetError` and correctly sets the state machine's error macro (similar to LibC `errno`) when an invalid operation is performed. This is reset on completion of a successful operation.
This commit is contained in:
parent
4807d32139
commit
e537e2690a
5 changed files with 58 additions and 4 deletions
|
@ -22,6 +22,7 @@ public:
|
|||
virtual void gl_color(GLdouble r, GLdouble g, GLdouble b, GLdouble a) = 0;
|
||||
virtual void gl_end() = 0;
|
||||
virtual void gl_frustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val) = 0;
|
||||
virtual GLenum gl_get_error() = 0;
|
||||
virtual GLubyte* gl_get_string(GLenum name) = 0;
|
||||
virtual void gl_load_identity() = 0;
|
||||
virtual void gl_matrix_mode(GLenum mode) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue