From 5b8a65b15a37d9c1c97fb39db93f1b40db628d70 Mon Sep 17 00:00:00 2001 From: vimene Date: Sun, 19 Nov 2023 07:11:23 +0100 Subject: improved pixel window rendering Pixel window rendering is now at the same state as the character rendering. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4ba6469..0de5723 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ EXE=main -OBJECT_FILES=main.o math_vector.o chfb.o obj3d.o vertex_data.o vertex.o tri_vertex.o +OBJECT_FILES=main.o math_vector.o chfb.o pixfb.o obj3d.o vertex_data.o vertex.o tri_vertex.o CC=g++ LD=g++ COMMON_ARGS=-Wall -Wextra @@ -11,7 +11,7 @@ LD_ARGS=$(COMMON_ARGS) -lncurses -lSDL2 $(EXE): $(OBJECT_FILES) $(LD) -o $@ $^ $(LD_ARGS) -main.o: main.cpp chfb.h obj3d.h math_vector.h vertex_data.h vertex.h tri_vertex.h +main.o: main.cpp chfb.h pixfb.h obj3d.h math_vector.h vertex_data.h vertex.h tri_vertex.h $(CC) -o $@ -c $< $(CC_ARGS) math_vector.o: math_vector.cpp math_vector.h @@ -20,6 +20,9 @@ math_vector.o: math_vector.cpp math_vector.h chfb.o: chfb.cpp chfb.h math_vector.h vertex_data.h vertex.h tri_vertex.h $(CC) -o $@ -c $< $(CC_ARGS) +pixfb.o: pixfb.cpp pixfb.h math_vector.h vertex_data.h vertex.h tri_vertex.h + $(CC) -o $@ -c $< $(CC_ARGS) + obj3d.o: obj3d.cpp obj3d.h math_vector.h vertex_data.h vertex.h tri_vertex.h $(CC) -o $@ -c $< $(CC_ARGS) -- cgit v1.2.3