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

LibGL: Implement glRectf and glRecti

This commit is contained in:
Jelle Raaijmakers 2021-12-24 14:53:32 +01:00 committed by Andreas Kling
parent 4a36d6b439
commit d83702cb92
5 changed files with 30 additions and 1 deletions

View file

@ -129,6 +129,8 @@ public:
virtual void gl_light_model(GLenum pname, GLfloat x, GLfloat y, GLfloat z, GLfloat w) override;
virtual void gl_bitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, GLubyte const* bitmap) override;
virtual void gl_copy_tex_image_2d(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) override;
virtual void gl_rect(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) override;
virtual void present() override;
private:
@ -312,7 +314,8 @@ private:
decltype(&SoftwareGLContext::gl_pop_attrib),
decltype(&SoftwareGLContext::gl_light_model),
decltype(&SoftwareGLContext::gl_bitmap),
decltype(&SoftwareGLContext::gl_copy_tex_image_2d)>;
decltype(&SoftwareGLContext::gl_copy_tex_image_2d),
decltype(&SoftwareGLContext::gl_rect)>;
using ExtraSavedArguments = Variant<
FloatMatrix4x4>;