mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibGL: Implement glScissor()
This commit is contained in:
parent
6dd2ebfe8e
commit
bb58f6ccab
9 changed files with 83 additions and 10 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <AK/Array.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
#include <LibGfx/Vector4.h>
|
||||
|
||||
namespace GL {
|
||||
|
@ -44,6 +45,8 @@ struct RasterizerOptions {
|
|||
GLboolean fog_enabled { false };
|
||||
GLfloat fog_start { 0.0f };
|
||||
GLfloat fog_end { 1.0f };
|
||||
bool scissor_enabled { false };
|
||||
Gfx::IntRect scissor_box {};
|
||||
GLenum draw_buffer { GL_BACK };
|
||||
GLfloat depth_offset_factor { 0 };
|
||||
GLfloat depth_offset_constant { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue