diff options
author | Stephan Unverwerth <s.unverwerth@gmx.de> | 2021-04-24 12:09:56 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-08 10:13:22 +0200 |
commit | e6c060049945ca34b7a46917a6674486deebf56e (patch) | |
tree | b3f6a3081aebd398d2819764df72b7a8176c282f /Userland/Libraries/LibGL/GLContext.h | |
parent | eff3c8a954dc5024792aaefe07e077337390bd64 (diff) | |
download | serenity-e6c060049945ca34b7a46917a6674486deebf56e.zip |
LibGL: Add back face culling functions
Adds all needed functions to support back face culling
and implements back face culling in the SoftwareGLContext.
Diffstat (limited to 'Userland/Libraries/LibGL/GLContext.h')
-rw-r--r-- | Userland/Libraries/LibGL/GLContext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLContext.h b/Userland/Libraries/LibGL/GLContext.h index dc7f75288c..612a4ee3e0 100644 --- a/Userland/Libraries/LibGL/GLContext.h +++ b/Userland/Libraries/LibGL/GLContext.h @@ -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(); |