From acc56fc7c2bedde6eced005eab0a37b6281b9a23 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 1 May 2023 18:23:36 +0300 Subject: Texture now can be either Texture or RenderTexture. No need to change texture source anymore. --- include/state.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'include/state.h') diff --git a/include/state.h b/include/state.h index eeef14a..e1cbaed 100644 --- a/include/state.h +++ b/include/state.h @@ -7,13 +7,18 @@ typedef struct { unsigned int animCount; } ModelAnimations; +typedef struct { + int type; + Texture texture; + RenderTexture renderTexture; +} ReiTexture; + typedef struct { char *exePath; bool hasWindow; bool run; lua_State *luaState; Vector2 resolution; - int textureSource; size_t guiFont; /* Resources. */ /* Images. */ @@ -21,13 +26,9 @@ typedef struct { size_t imageCount; size_t imageAlloc; /* Textures. */ - Texture **textures; + ReiTexture **textures; size_t textureCount; size_t textureAlloc; - /* RenderTextures. */ - RenderTexture **renderTextures; - size_t renderTextureCount; - size_t renderTextureAlloc; /* Fonts. */ Font **fonts; size_t fontCount; -- cgit v1.2.3