mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibGL: Implement glPixelStorei
This sets the length of a row for the image to be transferred. This value is measured in pixels. When a rectangle with a width less than this value is transferred the remaining pixels of this row are skipped.
This commit is contained in:
parent
eb368a5000
commit
19a08ff187
7 changed files with 79 additions and 31 deletions
|
@ -90,6 +90,7 @@ public:
|
|||
virtual void gl_fogfv(GLenum pname, GLfloat* params) override;
|
||||
virtual void gl_fogf(GLenum pname, GLfloat param) override;
|
||||
virtual void gl_fogi(GLenum pname, GLint param) override;
|
||||
virtual void gl_pixel_store(GLenum pname, GLfloat param) override;
|
||||
virtual void present() override;
|
||||
|
||||
private:
|
||||
|
@ -254,6 +255,8 @@ private:
|
|||
VertexAttribPointer m_client_vertex_pointer;
|
||||
VertexAttribPointer m_client_color_pointer;
|
||||
VertexAttribPointer m_client_tex_coord_pointer;
|
||||
|
||||
size_t m_unpack_row_length { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue