Implement optimised array rendering
This commit is contained in:
+2
-13
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user