From 99f2476d7bb8479d543f080c209324c77c775737 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Mon, 10 Jun 2024 13:35:23 +1000 Subject: bring back gltf --- src/renderer/render.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/renderer/render.h') diff --git a/src/renderer/render.h b/src/renderer/render.h index c193ff9..b745e7a 100644 --- a/src/renderer/render.h +++ b/src/renderer/render.h @@ -13,6 +13,25 @@ #include "ral_types.h" #include "render_types.h" +/** @brief configuration passed to the renderer at init time */ +typedef struct renderer_config { + char window_name[256]; + u32 scr_width, scr_height; + vec3 clear_colour; /** colour that the screen gets cleared to every frame */ +} renderer_config; + +typedef struct renderer { + struct GLFWwindow* window; + void* backend_context; + renderer_config config; + gpu_device device; + gpu_swapchain swapchain; + gpu_renderpass default_renderpass; + gpu_pipeline static_opaque_pipeline; + bool frame_aborted; + struct resource_pools* resource_pools; +} renderer; + bool renderer_init(renderer* ren); void renderer_shutdown(renderer* ren); -- cgit v1.2.3-70-g09d2