Pārlūkot izejas kodu

[glfw] Fix clean-up in example to use spine-cpp-lite APIs.

Mario Zechner 1 mēnesi atpakaļ
vecāks
revīzija
0a349d7914
2 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 3 1
      spine-glfw/README.md
  2. 2 2
      spine-glfw/example/main-cpp-lite.cpp

+ 3 - 1
spine-glfw/README.md

@@ -2,6 +2,8 @@
 
 
 The spine-glfw runtime provides basic functionality to load and manipulate [spine](http://esotericsoftware.com) skeletal animation data using C or C++ and render them via [GLFW](https://www.glfw.org/) and [glbinding](https://github.com/cginternals/glbinding).
 The spine-glfw runtime provides basic functionality to load and manipulate [spine](http://esotericsoftware.com) skeletal animation data using C or C++ and render them via [GLFW](https://www.glfw.org/) and [glbinding](https://github.com/cginternals/glbinding).
 
 
+# See the [spine-glfw documentation](http://esotericsoftware.com/spine-glfw) for in-depth information
+
 ## Licensing
 ## Licensing
 
 
 You are welcome to evaluate the Spine Runtimes and the examples we provide in this repository free of charge.
 You are welcome to evaluate the Spine Runtimes and the examples we provide in this repository free of charge.
@@ -16,4 +18,4 @@ For the official legal terms governing the Spine Runtimes, please read the [Spin
 
 
 spine-cpp works with data exported from spine 4.2.xx.
 spine-cpp works with data exported from spine 4.2.xx.
 
 
-spine-cpp supports all spine features, except two color tinting.
+spine-glfw supports all spine features.

+ 2 - 2
spine-glfw/example/main-cpp-lite.cpp

@@ -148,8 +148,8 @@ int main() {
 
 
 	// Dispose everything
 	// Dispose everything
 	renderer_dispose(renderer);
 	renderer_dispose(renderer);
-	// delete skeletonData;
-	delete atlas;
+	spine_skeleton_data_dispose(skeleton_data);
+	spine_atlas_dispose(atlas);
 
 
 	// Kill the window and GLFW
 	// Kill the window and GLFW
 	glfwTerminate();
 	glfwTerminate();