initial commit

This commit is contained in:
MihailRis 2025-05-07 20:42:50 +03:00
parent 27b194816b
commit fc46b7c434
36 changed files with 755 additions and 71 deletions

View file

@ -16,7 +16,7 @@ class DrawContext {
glm::uvec2 viewport;
Batch2D* g2d;
Flushable* flushable = nullptr;
Framebuffer* fbo = nullptr;
Bindable* fbo = nullptr;
bool depthMask = true;
bool depthTest = false;
bool cullFace = false;
@ -37,7 +37,7 @@ public:
DrawContext sub(Flushable* flushable=nullptr) const;
void setViewport(const glm::uvec2& viewport);
void setFramebuffer(Framebuffer* fbo);
void setFramebuffer(Bindable* fbo);
void setDepthMask(bool flag);
void setDepthTest(bool flag);
void setCullFace(bool flag);