summaryrefslogtreecommitdiffstats
path: root/src/RendererSection.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-09-19 17:52:09 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:31 +0100
commitd56fa5d68fcdfa2fdfc601d10e9292d6a5883dcd (patch)
tree86133ce5c166d20cc25706b09a81225105a580e2 /src/RendererSection.hpp
parent2017-09-17 (diff)
downloadAltCraft-d56fa5d68fcdfa2fdfc601d10e9292d6a5883dcd.tar
AltCraft-d56fa5d68fcdfa2fdfc601d10e9292d6a5883dcd.tar.gz
AltCraft-d56fa5d68fcdfa2fdfc601d10e9292d6a5883dcd.tar.bz2
AltCraft-d56fa5d68fcdfa2fdfc601d10e9292d6a5883dcd.tar.lz
AltCraft-d56fa5d68fcdfa2fdfc601d10e9292d6a5883dcd.tar.xz
AltCraft-d56fa5d68fcdfa2fdfc601d10e9292d6a5883dcd.tar.zst
AltCraft-d56fa5d68fcdfa2fdfc601d10e9292d6a5883dcd.zip
Diffstat (limited to 'src/RendererSection.hpp')
-rw-r--r--src/RendererSection.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/RendererSection.hpp b/src/RendererSection.hpp
index 9ba694e..de042f2 100644
--- a/src/RendererSection.hpp
+++ b/src/RendererSection.hpp
@@ -14,6 +14,7 @@
#include "Renderer.hpp"
struct RendererSectionData {
+ std::vector<GLuint> indices;
std::vector<glm::vec3> vertices;
std::vector<glm::vec2> uv;
std::vector<glm::mat4> models;
@@ -30,10 +31,14 @@ private:
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();
+
+ void ReplaceVertices();
};
+
class RendererSection {
enum Vbos {
- VERTICES = 0,
+ //VERTICES = 0,
+ IBO = 0,
UV,
TEXTURES,
COLORS,