1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 17:05:10 +00:00

LibGL: Implement glStencil* functions

This implements the context state for stencil testing functions and
operations. No rasterization is implemented.
This commit is contained in:
Jelle Raaijmakers 2021-12-01 15:21:00 +01:00 committed by Andreas Kling
parent 729349ce78
commit ea6bcda79c
7 changed files with 135 additions and 1 deletions

View file

@ -204,6 +204,8 @@ static void rasterize_triangle(const RasterizerOptions& options, Gfx::Bitmap& re
FloatVector4 pixel_buffer[RASTERIZER_BLOCK_SIZE][RASTERIZER_BLOCK_SIZE];
// FIXME: implement stencil testing
// Iterate over all blocks within the bounds of the triangle
for (int by = by0; by < by1; by++) {
for (int bx = bx0; bx < bx1; bx++) {