LibGL: Add back face culling functions

Adds all needed functions to support back face culling
and implements back face culling in the SoftwareGLContext.
This commit is contained in:
Stephan Unverwerth 2021-04-24 12:09:56 +02:00 committed by Andreas Kling
commit e6c0600499
Notes: sideshowbarker 2024-07-18 18:32:07 +09:00
5 changed files with 112 additions and 0 deletions

View file

@ -36,6 +36,10 @@ public:
virtual void gl_translate(GLdouble x, GLdouble y, GLdouble z) = 0;
virtual void gl_vertex(GLdouble x, GLdouble y, GLdouble z, GLdouble w) = 0;
virtual void gl_viewport(GLint x, GLint y, GLsizei width, GLsizei height) = 0;
virtual void gl_enable(GLenum) = 0;
virtual void gl_disable(GLenum) = 0;
virtual void gl_front_face(GLenum) = 0;
virtual void gl_cull_face(GLenum) = 0;
};
OwnPtr<GLContext> create_context();