summaryrefslogtreecommitdiffstats
path: root/src/RendererEntity.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-16 17:11:07 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-16 17:11:07 +0200
commitdee50239be8fff566b3ca687bc70900b391a8164 (patch)
tree6ff6ae2e8e2ea5109d031be8c588f4b8f38f68eb /src/RendererEntity.hpp
parent2017-08-12 (diff)
downloadAltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.gz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.bz2
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.lz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.xz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.zst
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.zip
Diffstat (limited to '')
-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