From f24107368fa47f911f4491f644ff3755525c91e1 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 19 Aug 2017 20:20:51 +0500 Subject: 2017-08-19 --- old/graphics/RenderSection.hpp | 52 ------------------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 old/graphics/RenderSection.hpp (limited to 'old/graphics/RenderSection.hpp') diff --git a/old/graphics/RenderSection.hpp b/old/graphics/RenderSection.hpp deleted file mode 100644 index 7f97624..0000000 --- a/old/graphics/RenderSection.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include - -#include "../core/AssetManager.hpp" -#include "../world/Section.hpp" -#include "../world/World.hpp" - -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; - std::vector models; - std::vector textures; - std::vector colors; - - static GLuint VboVertices, VboUvs; - static std::map refCounterVbo; - static std::map refCounterVao; - - size_t numOfFaces = 0; - - bool isEnabled = true; - - size_t hash = 0; -public: - RenderSection(World *world, Vector position); - RenderSection(const RenderSection &other); - ~RenderSection(); - - void UpdateState(const std::map &textureAtlas); - void Render(RenderState &state); - - void SetEnabled(bool isEnabled); - - Section *GetSection(); - - bool IsNeedUpdate(); -}; \ No newline at end of file -- cgit v1.2.3