From a2b43f8f93365874ba46dfaacd59df9e197c32e7 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:24:05 +1000 Subject: add state for heightmap --- src/systems/terrain.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/systems/terrain.c') diff --git a/src/systems/terrain.c b/src/systems/terrain.c index e69de29..1ff4078 100644 --- a/src/systems/terrain.c +++ b/src/systems/terrain.c @@ -0,0 +1,24 @@ +/** + * @file terrain.c + * @author your name (you@domain.com) + * @brief + * @version 0.1 + * @date 2024-06-22 + * + * @copyright Copyright (c) 2024 + * + */ +#include "terrain.h" +#include "ral.h" + +bool terrain_system_init(terrain_state* state) { + gpu_renderpass_desc rpass_desc = { + .default_framebuffer = true, + }; + struct graphics_pipeline_desc pipeline_desc = { + + }; + + state->hmap_renderpass = gpu_renderpass_create(&rpass_desc); + state->hmap_pipeline = gpu_graphics_pipeline_create(pipeline_desc); +} \ No newline at end of file -- cgit v1.2.3-70-g09d2