Texture now can be either Texture or RenderTexture. No need to change texture source anymore.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user