From 0c770ecad71bb540d36402311e01a2b6b94242fd Mon Sep 17 00:00:00 2001 From: omnisci3nce <17525998+omnisci3nce@users.noreply.github.com> Date: Wed, 3 Apr 2024 22:42:24 +1100 Subject: load gltf vertices and indices. need to move to git LFS! --- xmake.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xmake.lua') diff --git a/xmake.lua b/xmake.lua index 611b537..c18e926 100644 --- a/xmake.lua +++ b/xmake.lua @@ -68,6 +68,7 @@ target("core_config") set_kind("static") -- kind is required but you can ignore it since it's just for common settings add_syslinks("dl") add_packages("local_glfw") + add_includedirs("deps/cgltf", {public = true}) add_includedirs("deps/glfw-3.3.8/include/GLFW", {public = true}) add_includedirs("deps/glad/include", {public = true}) add_includedirs("deps/stb_image", {public = true}) @@ -118,6 +119,13 @@ target("obj") add_files("examples/obj_loading/ex_obj_loading.c") set_rundir("$(projectdir)") +target("gltf") + set_kind("binary") + set_group("examples") + add_deps("core_static") + add_files("examples/gltf_loading/ex_gltf_loading.c") + set_rundir("$(projectdir)") + target("demo") set_kind("binary") set_group("examples") -- cgit v1.2.3-70-g09d2