From dc42abd5a4c634d40a51aad608c93f2030032903 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 8 Nov 2022 15:37:18 -0800 Subject: *-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 --- src/hungrycat-node.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/hungrycat-node.c') diff --git a/src/hungrycat-node.c b/src/hungrycat-node.c index b880eda..0c311eb 100644 --- a/src/hungrycat-node.c +++ b/src/hungrycat-node.c @@ -16,12 +16,20 @@ #include -#include "gfx/gfx-hungrycat.h" +#include "ansr-tex.h" #include "hungrycat-node.h" +#include "tex.h" #include "tex-node.h" stage_t * hungrycat_node_new(stage_conf_t *conf, m4f_t *projection_x, m4f_t *model_x) { - return tex_node_new_mem(conf, gfx_hungrycat.width, gfx_hungrycat.height, gfx_hungrycat.pixel_data, projection_x, model_x); + tex_t *tex; + stage_t *s; + + tex = ansr_tex_new("assets/hungrycat.ans", NULL); + s = tex_node_new_tex(conf, tex, projection_x, model_x); + tex_free(tex); + + return s; } -- cgit v1.2.3