From f7decf41d8d0062901cd39c42a3669a80537c7df Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Thu, 3 Aug 2017 20:03:59 +0500 Subject: 2017-08-03 --- include/graphics/RenderSection.hpp | 42 -------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 include/graphics/RenderSection.hpp (limited to 'include/graphics/RenderSection.hpp') diff --git a/include/graphics/RenderSection.hpp b/include/graphics/RenderSection.hpp deleted file mode 100644 index 953d7ea..0000000 --- a/include/graphics/RenderSection.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -class RenderState { - GLuint ActiveVao; - GLuint ActiveShader; -public: - void SetActiveVao(GLuint Vao); - void SetActiveShader(GLuint Shader); -}; - -class RenderSection { - Vector sectionPosition; - World *world; - GLuint Vao, VboTextures, VboModels, VboColors; - - static GLuint VboVertices, VboUvs; - static std::map refCounterVbo; - static std::map refCounterVao; - - size_t numOfFaces; - -public: - RenderSection(World *world, Vector position); - RenderSection(const RenderSection &other); - ~RenderSection(); - - void UpdateState(const std::map &textureAtlas); - void Render(RenderState &state); - - Section *GetSection(); -}; \ No newline at end of file -- cgit v1.2.3