mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
22 lines
380 B
C++
22 lines
380 B
C++
#pragma once
|
|
|
|
#include <glm/vec3.hpp>
|
|
#include <glm/vec4.hpp>
|
|
#include <vector>
|
|
|
|
class LineBatch;
|
|
|
|
class LinesRenderer {
|
|
public:
|
|
struct Line {
|
|
glm::vec3 a;
|
|
glm::vec3 b;
|
|
glm::vec4 color;
|
|
};
|
|
|
|
void draw(LineBatch& batch);
|
|
|
|
void pushLine(const glm::vec3& a, const glm::vec3& b, const glm::vec4& color);
|
|
private:
|
|
std::vector<Line> queue;
|
|
};
|