mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibGL: Implement glPolygonMode
Currently just sets the renderer option for what polygon mode we want the rasterizer to draw in. GLQuake only uses `GL_FRONT_AND_BACK` with `GL_FILL` )which implies both back and front facing triangles are to be filled completely by the rasterizer), so keeping this as a small stub is perfectly fine for now.
This commit is contained in:
parent
f58e2350dc
commit
89eddb5bff
Notes:
sideshowbarker
2024-07-18 05:27:26 +09:00
Author: https://github.com/Quaker762
Commit: 89eddb5bff
Pull-request: https://github.com/SerenityOS/serenity/pull/9513
Reviewed-by: https://github.com/sunverwerth ✅
6 changed files with 23 additions and 0 deletions
|
@ -32,6 +32,7 @@ struct RasterizerOptions {
|
|||
float depth_min { 0 };
|
||||
float depth_max { 1 };
|
||||
GLenum depth_func { GL_LESS };
|
||||
GLenum polygon_mode { GL_FILL };
|
||||
};
|
||||
|
||||
class SoftwareRasterizer final {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue