mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
[glfw] Fix up asset paths.
This commit is contained in:
parent
4b5102fddf
commit
578084806d
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user