summaryrefslogtreecommitdiffstats
path: root/src/RendererSection.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-09-17 17:50:36 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:31 +0100
commit94006e599c8d591096b768d1cd0c8b75eb763c45 (patch)
treee1464cabe071e62015a822e1e3f36af524bbc16c /src/RendererSection.hpp
parent2017-09-16 (diff)
downloadAltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.gz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.bz2
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.lz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.xz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.zst
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.zip
Diffstat (limited to '')
-rw-r--r--src/RendererSection.hpp7
1 files changed, 6 insertions, 1 deletions
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<glm::vec3> vertices;
+ std::vector<glm::vec2> uv;
std::vector<glm::mat4> models;
std::vector<glm::vec4> textures;
std::vector<glm::vec3> colors;
@@ -26,10 +28,13 @@ private:
bool TestBlockExists(const std::vector<Vector> &sectionsList, World *world, Vector blockPos);
void AddFacesByBlockModel(const std::vector<Vector> &sectionsList, 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,