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:
parent
d236b0ed12
commit
29bbf56286
4 changed files with 33 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue