forked from Fierelier/me.fier.engine
Separate frontend/generic/textures.c correctly
This commit is contained in:
parent
c1bae3a207
commit
378240a8cf
1
main.c
1
main.c
@ -1,6 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "modules/engine/main.c"
|
||||
#include "modules/engine/textures.c"
|
||||
#include "modules/engine/frontend/sdl/main.c"
|
||||
#include "modules/engine/frontend/generic/textures.c"
|
||||
#include "modules/engine/lua.c"
|
||||
|
@ -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.
|
||||
#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_TEXTURE * engine_texture_create(int width,int height) {
|
||||
|
1
modules/engine/textures.c
Normal file
1
modules/engine/textures.c
Normal file
@ -0,0 +1 @@
|
||||
struct ENGINE_TEXTURE { int width; int height; void * fe_texture; };
|
Loading…
Reference in New Issue
Block a user