1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibGL: Add support for GL_BLEND in glEnable() and glDisable()

This commit is contained in:
Stephan Unverwerth 2021-05-15 22:55:40 +02:00 committed by Linus Groh
parent 279737642c
commit d6e9b433cf
4 changed files with 22 additions and 1 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include "DepthBuffer.h"
#include "GL/gl.h"
#include "GLStruct.h"
#include <AK/OwnPtr.h>
#include <LibGfx/Bitmap.h>
@ -15,8 +16,11 @@
namespace GL {
struct RasterizerOptions {
bool shade_smooth { false };
bool shade_smooth { true };
bool enable_depth_test { false };
bool enable_blending { false };
GLenum blend_source_factor { GL_ONE };
GLenum blend_destination_factor { GL_ONE };
};
class SoftwareRasterizer final {