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++) {