2021-05-12 17:38:11 +00:00
|
|
|
#include "gen/texgen.h"
|
|
|
|
#include "world/world.h"
|
|
|
|
|
2021-05-14 05:39:36 +00:00
|
|
|
#include "texgen_data.c"
|
|
|
|
|
2021-05-12 17:38:11 +00:00
|
|
|
Image texgen_build_block(uint32_t biome, uint32_t kind) {
|
|
|
|
// TODO(zaklaus):
|
|
|
|
(void)biome;
|
|
|
|
(void)kind;
|
2021-05-14 05:02:25 +00:00
|
|
|
return GenImageWhiteNoise(WORLD_BLOCK_SIZE, WORLD_BLOCK_SIZE, 0.8f);
|
2021-05-12 17:38:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|