mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibGL: Implement glEnableClientState and glDisableClientState
This commit is contained in:
parent
5f863016ca
commit
886f154c2a
Notes:
sideshowbarker
2024-07-18 06:57:59 +09:00
Author: https://github.com/sunverwerth
Commit: 886f154c2a
Pull-request: https://github.com/SerenityOS/serenity/pull/9382
Reviewed-by: https://github.com/alimpfard
5 changed files with 65 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue