Implement optimised array rendering

This commit is contained in:
2016-05-25 12:44:24 +02:00
parent fe1aa7220e
commit 84fcc346a9
7 changed files with 101 additions and 45 deletions
+2 -13
View File
@@ -1,4 +1,6 @@
#pragma once
#include "Vertex.h"
#include <string>
#include <vector>
#include <GL/freeglut.h>
@@ -19,19 +21,6 @@ public:
void GetHeigth(float x, float z);
void SetTexture(const std::string &file);
struct Vertex {
float x;
float y;
float z;
float normalX;
float normalY;
float normalZ;
float texX;
float texY;
};
std::vector<Vertex> vertices;
};