add unmodified version of TinyRenderer, a 500 line software renderer with vertex and pixel shaders, texture mapping and Wavefront .obj support.

This commit is contained in:
erwin coumans
2016-04-26 20:47:10 -07:00
parent edba85bab3
commit 2cb39e358a
12 changed files with 1116 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
SYSCONF_LINK = g++
CPPFLAGS = -Wall -Wextra -Weffc++ -pedantic -std=c++98
LDFLAGS = -O3
LIBS = -lm
DESTDIR = ./
TARGET = main
OBJECTS := $(patsubst %.cpp,%.o,$(wildcard *.cpp))
all: $(DESTDIR)$(TARGET)
$(DESTDIR)$(TARGET): $(OBJECTS)
$(SYSCONF_LINK) -Wall $(LDFLAGS) -o $(DESTDIR)$(TARGET) $(OBJECTS) $(LIBS)
$(OBJECTS): %.o: %.cpp
$(SYSCONF_LINK) -Wall $(CPPFLAGS) -c $(CFLAGS) $< -o $@
clean:
-rm -f $(OBJECTS)
-rm -f $(TARGET)
-rm -f *.tga