From 92022e9c76ba3955e88365e5d022db860b579144 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Fri, 25 Jul 2025 22:05:10 +0200 Subject: [PATCH] [glfw] Fix compilation errors due to nullability --- spine-glfw/example/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spine-glfw/example/main.cpp b/spine-glfw/example/main.cpp index 750432c27..3c79b7e97 100644 --- a/spine-glfw/example/main.cpp +++ b/spine-glfw/example/main.cpp @@ -68,10 +68,10 @@ int main() { // Load the atlas and the skeleton data GlTextureLoader textureLoader; Atlas *atlas = new Atlas("data/spineboy-pma.atlas", &textureLoader); - SkeletonBinary binary(atlas); + SkeletonBinary binary(*atlas); // SkeletonData *skeletonData = binary.readSkeletonDataFile("data/spineboy-pro.skel"); - SkeletonJson json(atlas); + SkeletonJson json(*atlas); SkeletonData *skeletonData = json.readSkeletonDataFile("data/spineboy-pro.json"); // Create a skeleton from the data, set the skeleton's position to the bottom center of @@ -84,9 +84,9 @@ int main() { // Create an AnimationState to drive animations on the skeleton. Set the "portal" animation // on track with index 0. - AnimationStateData animationStateData(skeletonData); + AnimationStateData animationStateData(*skeletonData); animationStateData.setDefaultMix(0.2f); - AnimationState animationState(&animationStateData); + AnimationState animationState(animationStateData); animationState.setAnimation(0, "portal", true); animationState.addAnimation(0, "run", true, 0);