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
+4 -2
View File
@@ -5,9 +5,11 @@
#include <stdlib.h>
#include <glm/glm.hpp>
#include "commons.hpp"
class Mesh;
class LineBatch {
class LineBatch : public Flushable {
std::unique_ptr<Mesh> mesh;
std::unique_ptr<float[]> buffer;
size_t index;
@@ -29,7 +31,7 @@ public:
rgba.r, rgba.g, rgba.b, rgba.a);
}
void render();
void flush() override;
void lineWidth(float width);
};