eco2d/code/game/source/gen/texgen.c

20 lines
460 B
C
Raw Normal View History

2021-05-12 17:38:11 +00:00
#include "gen/texgen.h"
#include "world/world.h"
Image texgen_build_block(uint32_t biome, uint32_t kind) {
// TODO(zaklaus):
(void)biome;
(void)kind;
return GenImageColor(WORLD_BLOCK_SIZE, WORLD_BLOCK_SIZE, RAYWHITE);
}
Texture2D texgen_build_sprite(asset_id id) {
// TODO(zaklaus):
(void)id;
Image img = GenImageColor(1, 1, RAYWHITE);
Texture2D tex = LoadTextureFromImage(img);
UnloadImage(img);
return tex;
}