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

LibGL: Implement glEnableClientState and glDisableClientState

This commit is contained in:
Stephan Unverwerth 2021-08-13 01:36:22 +02:00 committed by Andreas Kling
parent 5f863016ca
commit 886f154c2a
5 changed files with 65 additions and 0 deletions

View file

@ -74,6 +74,8 @@ public:
virtual void gl_active_texture(GLenum texture) override;
virtual void gl_get_floatv(GLenum pname, GLfloat* params) override;
virtual void gl_depth_mask(GLboolean flag) override;
virtual void gl_enable_client_state(GLenum cap) override;
virtual void gl_disable_client_state(GLenum cap) override;
virtual void present() override;
@ -134,6 +136,11 @@ private:
GLenum m_current_read_buffer = GL_BACK;
// Client side arrays
bool m_client_side_vertex_array_enabled = false;
bool m_client_side_color_array_enabled = false;
bool m_client_side_texture_coord_array_enabled = false;
NonnullRefPtr<Gfx::Bitmap> m_frontbuffer;
Clipper m_clipper;