This commit is contained in:
@clasher113 2023-11-29 17:11:56 +02:00
commit a8af2653f4
9 changed files with 144 additions and 21 deletions

View file

@ -2,6 +2,7 @@
#define GRAPHICS_LINEBATCH_H_
#include <stdlib.h>
#include <glm/glm.hpp>
class Mesh;
@ -19,6 +20,11 @@ public:
void box(float x, float y, float z, float w, float h, float d,
float r, float g, float b, float a);
inline void box(glm::vec3 xyz, glm::vec3 whd, glm::vec4 rgba) {
return box(xyz.x, xyz.y, xyz.z, whd.x, whd.y, whd.z,
rgba.r, rgba.g, rgba.b, rgba.a);
}
void render();
void lineWidth(float width);
};