summaryrefslogtreecommitdiff
path: root/src/hungrycat-node.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-11-08 15:37:18 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-11-08 15:37:18 -0800
commitdc42abd5a4c634d40a51aad608c93f2030032903 (patch)
tree3621be0a5c29e817eecadae87db6be8abf7e9322 /src/hungrycat-node.c
parentab090d967fbb206b058cb6ffa91fcd0d1c7e28a9 (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/hungrycat-node.c')
-rw-r--r--src/hungrycat-node.c12
1 files changed, 10 insertions, 2 deletions
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 <stage.h>
-#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;
}
© All Rights Reserved