[glfw] Fix up asset paths.

This commit is contained in:
Mario Zechner 2024-06-26 20:24:53 +02:00
parent 4b5102fddf
commit 578084806d
2 changed files with 3 additions and 2 deletions

View File

@ -54,6 +54,7 @@ target_link_libraries(spine-glfw-example PRIVATE glfw)
target_link_libraries(spine-glfw-example PRIVATE OpenGL::GL)
target_link_libraries(spine-glfw-example LINK_PUBLIC spine-glfw)
target_link_libraries(spine-glfw-example PRIVATE glbinding::glbinding)
set_property(TARGET spine-glfw-example PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/spine-glfw")
# copy data to build directory
add_custom_command(TARGET spine-glfw-example PRE_BUILD

View File

@ -35,8 +35,8 @@ int main() {
spine_bone_set_is_y_down(true);
// Load the atlas and the skeleton data
atlas_t *atlas = atlas_load("/Users/badlogic/workspaces/spine-runtimes/examples/spineboy/export/spineboy.atlas");
spine_skeleton_data skeleton_data = skeleton_data_load("/Users/badlogic/workspaces/spine-runtimes/examples/spineboy/export/spineboy-pro.json", atlas);
atlas_t *atlas = atlas_load("data/spineboy-pma.atlas");
spine_skeleton_data skeleton_data = skeleton_data_load("data/spineboy-pro.json", atlas);
// Create a skeleton drawable from the data, set the skeleton's position to the bottom center of
// the screen and scale it to make it smaller.