mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
update DrawContext
This commit is contained in:
parent
cf12338a32
commit
3590bd14cd
9 changed files with 67 additions and 45 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue