diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2021-08-21 14:49:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-26 19:53:57 +0200 |
commit | 19a08ff1876e260ab2526db36d3ad47d59cf5c4c (patch) | |
tree | 0077dcdae49a0d1aa23f3cf63a3c2ad851a5a863 /Userland/Libraries/LibGL/SoftwareGLContext.h | |
parent | eb368a5000512200bae2a51ef97c6ed1beda7c47 (diff) | |
download | serenity-19a08ff1876e260ab2526db36d3ad47d59cf5c4c.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibGL/SoftwareGLContext.h')
-rw-r--r-- | Userland/Libraries/LibGL/SoftwareGLContext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.h b/Userland/Libraries/LibGL/SoftwareGLContext.h index 3239c13afb..23ad3e2db9 100644 --- a/Userland/Libraries/LibGL/SoftwareGLContext.h +++ b/Userland/Libraries/LibGL/SoftwareGLContext.h @@ -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 }; }; } |