From 94006e599c8d591096b768d1cd0c8b75eb763c45 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 17 Sep 2017 20:50:36 +0500 Subject: 2017-09-17 --- src/RendererSection.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/RendererSection.hpp') diff --git a/src/RendererSection.hpp b/src/RendererSection.hpp index 1c7fc3d..9ba694e 100644 --- a/src/RendererSection.hpp +++ b/src/RendererSection.hpp @@ -14,6 +14,8 @@ #include "Renderer.hpp" struct RendererSectionData { + std::vector vertices; + std::vector uv; std::vector models; std::vector textures; std::vector colors; @@ -26,10 +28,13 @@ private: bool TestBlockExists(const std::vector §ionsList, World *world, Vector blockPos); void AddFacesByBlockModel(const std::vector §ionsList, World *world, Vector blockPos, const BlockModel &model, glm::mat4 transform, unsigned char light, unsigned char skyLight); + + void CreateVertices(); }; class RendererSection { enum Vbos { - MODELS = 0, + VERTICES = 0, + UV, TEXTURES, COLORS, LIGHTS, -- cgit v1.2.3