1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 00:47:45 +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:
Jelle Raaijmakers 2022-01-08 14:43:03 +01:00 committed by Linus Groh
parent d236b0ed12
commit 29bbf56286
4 changed files with 33 additions and 13 deletions

View file

@ -66,6 +66,7 @@ struct RasterizerOptions {
bool cull_front { false };
u8 texcoord_generation_enabled_coordinates { TexCoordGenerationCoordinate::None };
Array<TexCoordGenerationConfig, 4> texcoord_generation_config {};
Gfx::IntRect viewport;
};
struct PixelQuad;