summaryrefslogtreecommitdiffstats
path: root/src/RendererSection.hpp
diff options
context:
space:
mode:
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 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,