update DrawContext

This commit is contained in:
MihailRis 2024-07-21 16:06:40 +03:00
parent cf12338a32
commit 3590bd14cd
9 changed files with 67 additions and 45 deletions

View file

@ -11,7 +11,7 @@
class Mesh;
class Texture;
class Batch2D {
class Batch2D : public Flushable {
std::unique_ptr<float[]> buffer;
size_t capacity;
std::unique_ptr<Mesh> mesh;
@ -89,7 +89,7 @@ public:
float r4, float g4, float b4, int sh
);
void flush();
void flush() override;
void lineWidth(float width);
};