Texture now can be either Texture or RenderTexture. No need to change texture source anymore.

This commit is contained in:
jussi
2023-05-01 18:23:36 +03:00
parent 8b6337446d
commit acc56fc7c2
18 changed files with 160 additions and 251 deletions

View File

@@ -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;