39 lines
769 B
C
39 lines
769 B
C
/**
|
|
* Copyright (c) 2025 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "world/chunk.h"
|
|
#include "display/mesh/quad.h"
|
|
|
|
typedef struct {
|
|
mesh_t meshBase;
|
|
meshvertex_t verticesBase[CHUNK_TILE_COUNT * QUAD_VERTEX_COUNT];
|
|
|
|
mesh_t meshBaseOverlay;
|
|
meshvertex_t verticesBaseOverlay[CHUNK_TILE_COUNT];
|
|
} renderchunk_t;
|
|
|
|
typedef struct {
|
|
renderchunk_t chunks[CHUNK_MAP_COUNT];
|
|
} renderoverworld_t;
|
|
|
|
extern renderoverworld_t RENDER_OVERWORLD;
|
|
|
|
/**
|
|
* Initializes the render overworld.
|
|
*/
|
|
void renderOverworldInit(void);
|
|
|
|
/**
|
|
* Draws the render overworld.
|
|
*/
|
|
void renderOverworldDraw(void);
|
|
|
|
/**
|
|
* Disposes of the render overworld.
|
|
*/
|
|
void renderOverworldDispose(void); |