summaryrefslogtreecommitdiffstats
path: root/src/RendererEntity.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RendererEntity.hpp')
-rw-r--r--src/RendererEntity.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/RendererEntity.hpp b/src/RendererEntity.hpp
new file mode 100644
index 0000000..23fd029
--- /dev/null
+++ b/src/RendererEntity.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <glm/glm.hpp>
+#include <glm/gtc/matrix_transform.hpp>
+#include <glm/gtc/type_ptr.hpp>
+
+#include "Renderer.hpp"
+#include "Entity.hpp"
+#include "World.hpp"
+
+class RendererEntity :Renderer {
+ unsigned int entityId;
+ World *world;
+public:
+ RendererEntity(World *ptr, unsigned int id);
+ ~RendererEntity();
+
+ void Render(RenderState& renderState) override;
+ void PrepareResources() override;
+ void PrepareRender() override;
+ bool IsNeedResourcesPrepare() override;
+
+ GLint modelLoc = 0;
+ GLint colorLoc = 0;
+}; \ No newline at end of file