aboutsummaryrefslogtreecommitdiff
path: root/src/engine/graphics/component_renderer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/graphics/component_renderer.hpp')
-rw-r--r--src/engine/graphics/component_renderer.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/engine/graphics/component_renderer.hpp b/src/engine/graphics/component_renderer.hpp
new file mode 100644
index 0000000..4f53e07
--- /dev/null
+++ b/src/engine/graphics/component_renderer.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "interfaces/component.hpp"
+#include "interfaces/component_renderer.hpp"
+#include "interfaces/cursor.hpp"
+
+#include "engine/data/vector2.hpp"
+
+#include <memory>
+
+class ComponentRenderer : public IComponentRenderer
+{
+public:
+ explicit ComponentRenderer(
+ std::shared_ptr<ICursorController> cursor_controller) noexcept;
+
+ void render(
+ const std::shared_ptr<IComponent> &component,
+ const Vector2 &position) noexcept override;
+
+private:
+ std::shared_ptr<ICursorController> _cursor_controller;
+};