Implement model loading with assimp

This commit is contained in:
2024-12-26 00:59:00 +00:00
parent 806c260893
commit 0a4fb8e76f
3 changed files with 172 additions and 44 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/bash
CC=clang
CFLAGS="-g -c -Wall -Isrc/glad/include"
CFLAGS="-O3 -c -Wall -Isrc/glad/include"
CXX=clang++
CXXFLAGS="-g -Wall -std=c++20 $(pkg-config --cflags sdl2) -Isrc/glad/include -Isrc/glm -Isrc/assimp/include -Isrc/assimp/build/include"
CXXFLAGS="-O3 -Wall -std=c++20 $(pkg-config --cflags sdl2) -Isrc/glad/include -Isrc/glm -Isrc/assimp/include -Isrc/assimp/build/include"
LIBS="$(pkg-config --libs sdl2) -ldl -lz -lminizip -Lsrc/assimp/build/lib/ -lassimp"
GLAD_SRC="src/glad/src/glad.c"
GLAD_OBJ="glad.o"
@@ -14,5 +14,5 @@ OUT=main
(set -x ; $CXX $CXXFLAGS $SRC $LIBS -o $OUT)
if [[ -f $GLAD_OBJ ]]; then
rm $GLAD_OBJ
rm $GLAD_OBJ
fi