Fixed naming conention for spine example
This commit is contained in:
parent
df3ed39a25
commit
7bdc2ac2ca
1 changed files with 3205 additions and 8 deletions
|
|
@ -34,7 +34,7 @@ int main()
|
|||
spAnimationState* animationState;
|
||||
|
||||
// Init spine
|
||||
atlas = spAtlas_createFromFile("assets/dragon/NewDragon.atlas", 0);
|
||||
atlas = spAtlas_createFromFile("resources/spine/dragon/NewDragon.atlas", 0);
|
||||
json = spSkeletonJson_create(atlas);
|
||||
|
||||
skeletonData = spSkeletonJson_readSkeletonDataFile(json, "assets/dragon/NewDragon.json");
|
||||
|
|
@ -80,7 +80,7 @@ int main()
|
|||
spAnimationState_apply(animationState, skeleton);
|
||||
spSkeleton_updateWorldTransform(skeleton);
|
||||
|
||||
drawSkeleton(skeleton, skeletonPosition);
|
||||
DrawSkeleton(skeleton, skeletonPosition);
|
||||
|
||||
DrawFPS(10, 10);
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ int main()
|
|||
|
||||
spAtlas_dispose(atlas);
|
||||
spSkeleton_dispose(skeleton);
|
||||
texture_2d_destroy(); // Destroy textures loaded by spine
|
||||
Texture2dDestroy(); // Destroy textures loaded by spine
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue