Audio module, simple text rendering

This commit is contained in:
MihailRis
2022-03-20 23:48:21 +03:00
committed by GitHub
parent e96fd909ea
commit 1770acbfef
15 changed files with 702 additions and 17 deletions
+10
View File
@@ -5,6 +5,7 @@
#include <glm/glm.hpp>
class Mesh;
class Texture;
class Batch2D {
float* buffer;
@@ -12,6 +13,10 @@ class Batch2D {
size_t offset;
glm::vec4 color;
Mesh* mesh;
size_t index;
Texture* blank;
Texture* _texture;
void vertex(float x, float y,
float u, float v,
@@ -20,7 +25,12 @@ public:
Batch2D(size_t capacity);
~Batch2D();
void begin();
void texture(Texture* texture);
void rect(float x, float y, float w, float h);
void rect(float x, float y, float w, float h,
float u, float v, float tx, float ty,
float r, float g, float b, float a);
void render();
};