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

LibGL: Implement glVertexPointer

This commit is contained in:
Stephan Unverwerth 2021-08-13 13:03:06 +02:00 committed by Andreas Kling
parent 886f154c2a
commit 07b9cba6e6
6 changed files with 43 additions and 0 deletions

View file

@ -76,6 +76,7 @@ public:
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 gl_vertex_pointer(GLint size, GLenum type, GLsizei stride, const void* pointer) override;
virtual void present() override;
@ -223,6 +224,15 @@ private:
GLenum mode { GL_COMPILE };
};
Optional<CurrentListing> m_current_listing_index;
struct VertexAttribPointer {
GLint size { 4 };
GLenum type { GL_FLOAT };
GLsizei stride { 0 };
const void* pointer { 0 };
};
VertexAttribPointer m_client_vertex_pointer;
};
}