Added glass and metal objects

This commit is contained in:
The Dust Council 2026-06-03 18:25:03 -07:00
parent 926008e491
commit 3fa044013a
7 changed files with 2103 additions and 38 deletions

View file

@ -13,7 +13,29 @@ $(TARGET): $(SRC)
run: $(TARGET)
./$(TARGET)
clean:
rm -f $(TARGET)
# --- Windows x64 cross-compile (MinGW-w64) ---------------------------------
# Produces a self-contained vectorgons.exe (statically links GLFW and the
# GCC/threads runtime; at run time it needs only Windows system DLLs:
# opengl32, glu32, gdi32, user32, shell32, kernel32). Override WINCC / GLFWDIR
# for your toolchain and GLFW (https://www.glfw.org/download, WIN64 binaries):
# make windows WINCC=x86_64-w64-mingw32-gcc GLFWDIR=/path/to/glfw-3.4.bin.WIN64
WINCC ?= x86_64-w64-mingw32-gcc
GLFWDIR ?= /tmp/glfw-3.4.bin.WIN64
WINFLAGS = -O2 -std=c11 -Wall -Wextra -mwindows -static -s
WINLIBS = -lglfw3 -lglu32 -lopengl32 -lgdi32 -luser32 -lshell32
.PHONY: run clean
windows: $(SRC)
$(WINCC) $(WINFLAGS) -I$(GLFWDIR)/include -o $(TARGET).exe $(SRC) \
-L$(GLFWDIR)/lib-mingw-w64 $(WINLIBS)
# Windows screensaver: same code with -DSCREENSAVER, output named .scr.
# Install by right-clicking the .scr in Windows -> Install (or drop it in
# C:\Windows\System32 and pick it in Settings > Lock screen > Screen saver).
screensaver: $(SRC)
$(WINCC) $(WINFLAGS) -DSCREENSAVER -I$(GLFWDIR)/include -o $(TARGET).scr $(SRC) \
-L$(GLFWDIR)/lib-mingw-w64 $(WINLIBS)
clean:
rm -f $(TARGET) $(TARGET).exe $(TARGET).scr
.PHONY: run windows screensaver clean