summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-11-08 15:03:14 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-11-08 15:03:14 -0800
commit8dea34598a6eb427f06ec1cfac4ef9435dfd9911 (patch)
tree7cc2f75b98e14d7cce0a6e82584dece0d91c88e6 /src/Makefile.am
parente11c6361ee49a6ef5cfd29bbd3a8ac336a992337 (diff)
ansr-tex: add .ans->cp437->tex_t ability via libansr
libansr is used to turn the ansi stream of bytes into an in-memory representation of the screen's character contents. From this in-memory representation (ansr_t) an RGBA pixel rendering is produced in the form of a uint32_t array. This is then uploaded to the GPU via the existing tex.[ch] api. The intention here is to replace all the compiled-in gfx/* RGBA buffers with runtime-loaded-and-rendered .and files read from the filesystem. This enables faster iteration on the art without involving recompilation, and smaller distribution of the builds. Nothing functionally changes with this commit yet. It's only introducing the functionality to the tree and adding it to the build. Subsequent commits will replace the various tex_new() callers in the various -node.c listings with ansr_tex_new() equivalents. Afterwards all of the headers in gfx/ will be removed in favor of .ans assets. One additional detail is there's now going to be a concept of mask.ans files for controlling the alpha, since .ans alone doesn't really suffice here. Some ansi editors use methods like space-padding from the left to place the actual content, and there's no obvious way to differentiate those space pads from desired opaque background color cells vs. just transparent locators. So a separate mask.ans is supported where every non-black pixel of the mask.ans will be opaque, and every black pixel transparent, in the final tex_t output.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 654187e..10a581e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,6 +4,8 @@ sars_SOURCES = \
adult-masked-node.h \
adult-node.c \
adult-node.h \
+ ansr-tex.c \
+ ansr-tex.h \
baby-hatted-node.c \
baby-hatted-node.h \
baby-node.c \
@@ -12,6 +14,7 @@ sars_SOURCES = \
bb3f.h \
clear-node.c \
clear-node.h \
+ cp437.h \
digit-node.c \
digit-node.h \
game.c \
© All Rights Reserved