mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +00:00
LibGL+LibSoftGPU: Implement viewport support
This implements the `glViewport` API call, the coordinate transformation and the `GL_VIEWPORT` context parameter.
This commit is contained in:
parent
d236b0ed12
commit
29bbf56286
4 changed files with 33 additions and 13 deletions
|
@ -179,6 +179,8 @@ private:
|
|||
// FIXME: implement multi-texturing: the texture matrix stack should live inside a texture unit
|
||||
Vector<FloatMatrix4x4> m_texture_matrix_stack;
|
||||
|
||||
Gfx::IntRect m_viewport;
|
||||
|
||||
FloatVector4 m_clear_color { 0.0f, 0.0f, 0.0f, 0.0f };
|
||||
double m_clear_depth { 1.0 };
|
||||
GLint m_clear_stencil { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue