Les chunks ne sont plus une copie du même chunk!

This commit is contained in:
Marc-Eric Martel
2021-11-02 13:25:24 -04:00
parent eee251dabf
commit 65e56c8678
4 changed files with 20 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
#define CHUNK_H__
#include "define.h"
#include "array3d.h"
#include "array2d.h"
#include "vertexbuffer.h"
#include "blockinfo.h"
@@ -11,10 +12,13 @@ class Chunk {
VertexBuffer m_vertexBuffer;
bool m_isDirty = true;
int m_posX; // Position du chunk dans l'array constituant le monde.
int m_posY;
void AddBlockToMesh(VertexBuffer::VertexData* vd, int& count, BlockType bt, int x, int y, int z, float u, float v, float s);
public:
Chunk();
Chunk(int x, int y);
~Chunk();
void RemoveBlock(int x, int y, int z);