renderer_gl: Implement logic op

This commit is contained in:
GPUCode 2023-07-26 22:08:20 +03:00
parent 95a8917589
commit 6f7874227c
3 changed files with 28 additions and 1 deletions

View file

@ -53,6 +53,7 @@ namespace PICA {
// Framebuffer registers
ColourOperation = 0x100,
BlendFunc = 0x101,
LogicOp = 0x102,
BlendColour = 0x103,
AlphaTestConfig = 0x104,
StencilTest = 0x105,
@ -294,4 +295,4 @@ namespace PICA {
GeometryPrimitive = 3,
};
} // namespace PICA
} // namespace PICA

View file

@ -62,6 +62,7 @@ class RendererGL final : public Renderer {
MAKE_LOG_FUNCTION(log, rendererLogger)
void setupBlending();
void setupStencilTest(bool stencilEnable);
void setupLogicOp();
void bindDepthBuffer();
void setupTextureEnvState();
void bindTexturesToSlots();