2021-05-12 17:38:11 +00:00
|
|
|
#include "gen/texgen.h"
|
|
|
|
#include "world/world.h"
|
2021-07-18 18:30:27 +00:00
|
|
|
#include "zpl.h"
|
2022-09-29 12:02:22 +00:00
|
|
|
#include "utils/raylib_helpers.h"
|
2021-11-04 12:34:15 +00:00
|
|
|
|
|
|
|
Texture2D texgen_build_anim(asset_id id, int64_t counter) {
|
|
|
|
(void)counter;
|
2021-08-25 21:36:20 +00:00
|
|
|
switch (id) {
|
2022-09-29 12:17:47 +00:00
|
|
|
default: return GenColorEco(ColorFromHSV(id * 240.0f, 0.6f, 0.45f)); break;
|
2021-11-04 12:34:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Texture2D texgen_build_sprite(asset_id id) {
|
|
|
|
switch (id) {
|
2022-08-09 14:46:23 +00:00
|
|
|
case ASSET_BLANK: return GenColorEco(WHITE); break;
|
2021-11-04 12:34:15 +00:00
|
|
|
case ASSET_BUILDMODE_HIGHLIGHT: return GenColorEco(WHITE); break;
|
2022-09-29 12:19:16 +00:00
|
|
|
case ASSET_BLOCK_FRAME: return GenFrameRect(); break;
|
2022-09-28 18:40:59 +00:00
|
|
|
|
2022-09-29 12:17:47 +00:00
|
|
|
default: return GenColorEco(ColorFromHSV(id * 240.0f, 0.6f, 0.45f)); break;
|
2021-08-25 21:36:20 +00:00
|
|
|
}
|
2021-05-12 17:38:11 +00:00
|
|
|
}
|