You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
567 B
28 lines
567 B
#ifndef RENDER_SYSTEM_H |
|
#define RENDER_SYSTEM_H |
|
|
|
#include <memory> //std::shared_ptr |
|
|
|
#include "entt/entity/registry.hpp" // entt::entity, entt::registry |
|
|
|
#include "inferno/render/renderer.h" |
|
#include "inferno/singleton.h" |
|
|
|
namespace Inferno { |
|
|
|
class RenderSystem final : public Singleton<RenderSystem> { |
|
public: |
|
RenderSystem(s); |
|
virtual ~RenderSystem(); |
|
|
|
void render(); |
|
|
|
void setRegistry(const std::shared_ptr<entt::registry>& registry) { m_registry = registry; }; |
|
|
|
private: |
|
std::shared_ptr<entt::registry> m_registry; |
|
}; |
|
|
|
} |
|
|
|
#endif // RENDER_SYSTEM_H
|
|
|