basically chunk loading
This commit is contained in:
@@ -8,10 +8,18 @@
|
||||
#pragma once
|
||||
#include "rpg/world/tile.h"
|
||||
#include "worldpos.h"
|
||||
#include "display/mesh/mesh.h"
|
||||
|
||||
#define CHUNK_VERTEX_COUNT_MAX (6 * CHUNK_TILE_COUNT * 3)
|
||||
#define CHUNK_MESH_COUNT_MAX 16
|
||||
|
||||
typedef struct chunk_s {
|
||||
chunkpos_t position;
|
||||
tile_t tiles[CHUNK_TILE_COUNT];
|
||||
|
||||
uint8_t meshCount;
|
||||
meshvertex_t vertices[CHUNK_VERTEX_COUNT_MAX];
|
||||
mesh_t meshes[CHUNK_MESH_COUNT_MAX];
|
||||
} chunk_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user