diff options
| author | jussi | 2023-05-01 18:23:36 +0300 |
|---|---|---|
| committer | jussi | 2023-05-01 18:23:36 +0300 |
| commit | acc56fc7c2bedde6eced005eab0a37b6281b9a23 (patch) | |
| tree | 6298f7eeee27469f20d6d992c93118aa162b49a8 /include/state.h | |
| parent | 8b6337446dd79faf226ea9df40d4d06d81c38436 (diff) | |
| download | reilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.tar.gz reilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.tar.bz2 reilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.zip | |
Texture now can be either Texture or RenderTexture. No need to change texture source anymore.
Diffstat (limited to 'include/state.h')
| -rw-r--r-- | include/state.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/state.h b/include/state.h index eeef14a..e1cbaed 100644 --- a/include/state.h +++ b/include/state.h @@ -8,12 +8,17 @@ typedef struct { } 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; |
