mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
LibGL: Make read_from_vertex_attribute_pointer
static
This commit is contained in:
parent
01a4d58432
commit
2d59c9b6b6
2 changed files with 101 additions and 103 deletions
|
@ -78,6 +78,14 @@ struct ContextParameter {
|
|||
} value;
|
||||
};
|
||||
|
||||
struct VertexAttribPointer {
|
||||
GLint size { 4 };
|
||||
GLenum type { GL_FLOAT };
|
||||
bool normalize { true };
|
||||
GLsizei stride { 0 };
|
||||
void const* pointer { 0 };
|
||||
};
|
||||
|
||||
enum Face {
|
||||
Front = 0,
|
||||
Back = 1,
|
||||
|
@ -497,16 +505,6 @@ private:
|
|||
};
|
||||
Optional<CurrentListing> m_current_listing_index;
|
||||
|
||||
struct VertexAttribPointer {
|
||||
GLint size { 4 };
|
||||
GLenum type { GL_FLOAT };
|
||||
bool normalize { true };
|
||||
GLsizei stride { 0 };
|
||||
void const* pointer { 0 };
|
||||
};
|
||||
|
||||
static void read_from_vertex_attribute_pointer(VertexAttribPointer const&, int index, float* elements);
|
||||
|
||||
VertexAttribPointer m_client_vertex_pointer;
|
||||
VertexAttribPointer m_client_color_pointer;
|
||||
Vector<VertexAttribPointer> m_client_tex_coord_pointer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue