1
0
Fork 0
2019-ecs/Source/Systems/RenderSystem.hpp

30 lines
393 B
C++
Raw Normal View History

2019-08-03 19:29:42 +00:00
#pragma once
#include "Core/System.hpp"
#include "Graphics/GlLoader.hpp"
#include "Graphics/Shader.hpp"
#include <memory>
class Event;
class RenderSystem : public System
{
public:
void Init();
void Update(float dt);
private:
void WindowSizeListener(Event& event);
std::unique_ptr<Shader> shader;
Entity mCamera;
GLuint mVao{};
GLuint mVboVertices{};
GLuint mVboNormals{};
};