Separate frontend/generic/textures.c correctly

This commit is contained in:
Fierelier 2023-05-15 11:26:22 +02:00
parent c1bae3a207
commit 378240a8cf
3 changed files with 3 additions and 2 deletions

1
main.c
View File

@ -1,6 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "modules/engine/main.c" #include "modules/engine/main.c"
#include "modules/engine/textures.c"
#include "modules/engine/frontend/sdl/main.c" #include "modules/engine/frontend/sdl/main.c"
#include "modules/engine/frontend/generic/textures.c" #include "modules/engine/frontend/generic/textures.c"
#include "modules/engine/lua.c" #include "modules/engine/lua.c"

View File

@ -1,7 +1,6 @@
// Mostly for fun (but can very slightly increase performance for large textures). If set to 1, does not clear texture's affiliated and leaves garbage. // Mostly for fun (but can very slightly increase performance for large textures). If set to 1, does not clear texture's affiliated and leaves garbage.
#define ENGINE_GENERIC_TEXTURE_NOCLEAR 1 #define ENGINE_GENERIC_TEXTURE_NOCLEAR 0
struct ENGINE_TEXTURE { int width; int height; void * fe_texture; };
struct ENGINE_GENERIC_TEXTURE { char * pixels; }; struct ENGINE_GENERIC_TEXTURE { char * pixels; };
struct ENGINE_TEXTURE * engine_texture_create(int width,int height) { struct ENGINE_TEXTURE * engine_texture_create(int width,int height) {

View File

@ -0,0 +1 @@
struct ENGINE_TEXTURE { int width; int height; void * fe_texture; };