1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

LibGL: Implement glPolygonOffset

This commit is contained in:
Stephan Unverwerth 2021-08-31 20:50:01 +02:00 committed by Ali Mohammad Pur
parent 7cbaaf8366
commit 15299b763c
7 changed files with 26 additions and 1 deletions

View file

@ -89,6 +89,7 @@ public:
virtual void gl_depth_range(GLdouble min, GLdouble max) override;
virtual void gl_depth_func(GLenum func) override;
virtual void gl_polygon_mode(GLenum face, GLenum mode) override;
virtual void gl_polygon_offset(GLfloat factor, GLfloat units) override;
virtual void gl_fogfv(GLenum pname, GLfloat* params) override;
virtual void gl_fogf(GLenum pname, GLfloat param) override;
virtual void gl_fogi(GLenum pname, GLint param) override;
@ -227,7 +228,8 @@ private:
decltype(&SoftwareGLContext::gl_depth_mask),
decltype(&SoftwareGLContext::gl_draw_arrays),
decltype(&SoftwareGLContext::gl_draw_elements),
decltype(&SoftwareGLContext::gl_depth_range)>;
decltype(&SoftwareGLContext::gl_depth_range),
decltype(&SoftwareGLContext::gl_polygon_offset)>;
using ExtraSavedArguments = Variant<
FloatMatrix4x4>;