From dee50239be8fff566b3ca687bc70900b391a8164 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 16 Aug 2017 20:11:07 +0500 Subject: 2017-08-16 --- src/RendererEntity.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/RendererEntity.hpp (limited to 'src/RendererEntity.hpp') 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 +#include +#include + +#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 -- cgit v1.2.3