From f8641a5cc4c8baf1f0a7be3685afc219d90143d9 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Wed, 17 Jul 2024 14:45:31 +1000 Subject: whole thing is compiling and running again --- src/ral/ral_common.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/ral/ral_common.h') diff --git a/src/ral/ral_common.h b/src/ral/ral_common.h index 0f7c1b7..6a373ee 100644 --- a/src/ral/ral_common.h +++ b/src/ral/ral_common.h @@ -6,7 +6,13 @@ #include "buf.h" #include "mem.h" #include "ral_types.h" -#include "ral_impl.h" +// #include "ral_impl.h" + +// Concrete implementation +#if defined(CEL_REND_BACKEND_OPENGL) +#include "backend_opengl.h" +#endif + TYPED_POOL(GPU_Buffer, Buffer); TYPED_POOL(GPU_Texture, Texture); @@ -15,8 +21,8 @@ TYPED_POOL(GPU_Pipeline, Pipeline); TYPED_POOL(GPU_Renderpass, Renderpass); // --- Handy macros -#define BUFFER_GET(h) (buffer_pool_get(&context.resource_pools->buffers, h)) -#define TEXTURE_GET(h) (texture_pool_get(&context.resource_pools->textures, h)) +#define BUFFER_GET(h) (Buffer_pool_get(&context.resource_pools->buffers, h)) +#define TEXTURE_GET(h) (Texture_pool_get(&context.resource_pools->textures, h)) // --- Pools typedef struct GPU_BackendPools { -- cgit v1.2.3-70-g09d2