16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 04:19:19 +02:00
This commit is contained in:
2026-05-24 21:48:05 +02:00
parent 5b51188dfe
commit 2c599cb419
46 changed files with 2034 additions and 85 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include "BaseSystem.h"
// Renders Line components as GL_LINES using camera-relative world positions.
// Uses vbocolor.vert + ecs_line.frag.
class LineSystem : public BaseSystem
{
public:
LineSystem();
~LineSystem();
void Render(ECWorld& world) override;
private:
struct LineVertex {
glm::vec3 position; // camera-relative world position
glm::vec3 color;
};
struct RenderState;
std::unique_ptr<RenderState> m_renderState;
};