mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
LibGL: Implement state for all pixel store parameters
This implements the state and context parameters for all packing and unpacking parameters accepted by `glPixelStore*`.
This commit is contained in:
parent
e2b151812e
commit
fe5419da0f
3 changed files with 75 additions and 44 deletions
|
@ -510,9 +510,18 @@ private:
|
|||
Vector<VertexAttribPointer> m_client_tex_coord_pointer;
|
||||
VertexAttribPointer m_client_normal_pointer;
|
||||
|
||||
u8 m_pack_alignment { 4 };
|
||||
GLsizei m_unpack_row_length { 0 };
|
||||
u8 m_unpack_alignment { 4 };
|
||||
struct PixelParameters {
|
||||
i32 image_height { 0 };
|
||||
bool least_significant_bit_first { false };
|
||||
u8 pack_alignment { 4 };
|
||||
i32 row_length { 0 };
|
||||
i32 skip_images { 0 };
|
||||
i32 skip_pixels { 0 };
|
||||
i32 skip_rows { 0 };
|
||||
bool swap_bytes { false };
|
||||
};
|
||||
PixelParameters m_packing_parameters;
|
||||
PixelParameters m_unpacking_parameters;
|
||||
|
||||
// Point drawing configuration
|
||||
bool m_point_smooth { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue