LibGL: Implement glVertexPointer

This commit is contained in:
Stephan Unverwerth 2021-08-13 13:03:06 +02:00 committed by Andreas Kling
commit 07b9cba6e6
Notes: sideshowbarker 2024-07-18 06:57:56 +09:00
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;
};
}