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/adult-masked-node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/adult-masked-node.c') diff --git a/src/adult-masked-node.c b/src/adult-masked-node.c index eef0523..98646fc 100644 --- a/src/adult-masked-node.c +++ b/src/adult-masked-node.c @@ -16,8 +16,8 @@ #include +#include "ansr-tex.h" #include "adult-masked-node.h" -#include "gfx/gfx-adult-masked.h" #include "tex.h" #include "tex-node.h" @@ -26,7 +26,7 @@ static tex_t *adult_masked_tex; stage_t * adult_masked_node_new(stage_conf_t *conf, m4f_t *projection_x, m4f_t *model_x) { if (!adult_masked_tex) - adult_masked_tex = tex_new(gfx_adult_masked.width, gfx_adult_masked.height, gfx_adult_masked.pixel_data); + adult_masked_tex = ansr_tex_new("assets/adult-masked.ans", "assets/adult-masked.mask.ans"); return tex_node_new_tex(conf, adult_masked_tex, projection_x, model_x); } -- cgit v1.2.3