Les chunks ne sont plus une copie du même chunk!
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user