diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-11-08 15:37:18 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-11-08 15:37:18 -0800 |
commit | dc42abd5a4c634d40a51aad608c93f2030032903 (patch) | |
tree | 3621be0a5c29e817eecadae87db6be8abf7e9322 /src/baby-hatted-node.c | |
parent | ab090d967fbb206b058cb6ffa91fcd0d1c7e28a9 (diff) |
*-node: pivot to ansr_tex_new() and .ans assets
This switches all existing art assets over to
runtime-loaded-and-rendered .ans assets.
gfx/*.h embedded assets will be removed in a subsequent commit
Diffstat (limited to 'src/baby-hatted-node.c')
-rw-r--r-- | src/baby-hatted-node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/baby-hatted-node.c b/src/baby-hatted-node.c index 3f509bd..ba963f8 100644 --- a/src/baby-hatted-node.c +++ b/src/baby-hatted-node.c @@ -16,8 +16,8 @@ #include <stage.h> +#include "ansr-tex.h" #include "baby-hatted-node.h" -#include "gfx/gfx-baby-hatted.h" #include "tex.h" #include "tex-node.h" @@ -26,7 +26,7 @@ static tex_t *baby_hatted_tex; stage_t * baby_hatted_node_new(stage_conf_t *conf, m4f_t *projection_x, m4f_t *model_x) { if (!baby_hatted_tex) - baby_hatted_tex = tex_new(gfx_baby_hatted.width, gfx_baby_hatted.height, gfx_baby_hatted.pixel_data); + baby_hatted_tex = ansr_tex_new("assets/baby-hatted.ans", "assets/baby-hatted.mask.ans"); return tex_node_new_tex(conf, baby_hatted_tex, projection_x, model_x); } |