Ray casting with spheres.

This commit is contained in:
2016-12-25 21:47:28 -04:00
parent cc3525d064
commit 54bf4d4822
8 changed files with 319 additions and 0 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
TARGET = ray
HEADERS = ray.hpp sphere.hpp figure.hpp
OBJECTS = main.o sphere.o
CXX = g++
CXXFLAGS = -ansi -pedantic -Wall -g -DGLM_FORCE_RADIANS -fopenmp
LDLIBS = -lm
.PHONY: all
all: $(TARGET)
$(TARGET): $(OBJECTS) $(HEADERS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
main.o: main.cpp $(HEADERS)
sphere.o: sphere.cpp $(HEADERS)
.PHONY: clean
clean:
$(RM) $(TARGET) *.o