This commit is contained in:
Stephen Gowen 2017-11-25 12:44:57 -05:00
parent 929462de70
commit 6b585ae151
11 changed files with 11 additions and 11 deletions

View File

@ -149,7 +149,7 @@ namespace Spine
// }
//
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time);
// int frame = Animation::binarySearch(frames, time);
// float[] prevVertices = frameVertices[frame - 1];
// float[] nextVertices = frameVertices[frame];
// float frameTime = frames[frame];

View File

@ -84,7 +84,7 @@ namespace Spine
// if (time >= frames[frames.Length - 1]) // Time is after last frame.
// frame = frames.Length - 1;
// else
// frame = Animation.BinarySearch(frames, time) - 1;
// frame = Animation::binarySearch(frames, time) - 1;
//
// int[] drawOrderToSetupIndex = drawOrders[frame];
// if (drawOrderToSetupIndex == NULL) {

View File

@ -82,7 +82,7 @@ namespace Spine
// if (lastTime < frames[0])
// frame = 0;
// else {
// frame = Animation.BinarySearch(frames, lastTime);
// frame = Animation::binarySearch(frames, lastTime);
// float frameTime = frames[frame];
// while (frame > 0) { // Fire multiple events with the same frame.
// if (frames[frame - 1] != frameTime) break;

View File

@ -100,7 +100,7 @@ namespace Spine
// }
//
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time, ENTRIES);
// int frame = Animation::binarySearch(frames, time, ENTRIES);
// float mix = frames[frame + PREV_MIX];
// float frameTime = frames[frame];
// float percent = GetCurvePercent(frame / ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + PREV_TIME] - frameTime));

View File

@ -93,7 +93,7 @@ namespace Spine
// translate = frames[frames.Length + PREV_TRANSLATE];
// } else {
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time, ENTRIES);
// int frame = Animation::binarySearch(frames, time, ENTRIES);
// rotate = frames[frame + PREV_ROTATE];
// translate = frames[frame + PREV_TRANSLATE];
// float frameTime = frames[frame];

View File

@ -89,7 +89,7 @@ namespace Spine
// position = frames[frames.Length + PREV_VALUE];
// else {
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time, ENTRIES);
// int frame = Animation::binarySearch(frames, time, ENTRIES);
// position = frames[frame + PREV_VALUE];
// float frameTime = frames[frame];
// float percent = GetCurvePercent(frame / ENTRIES - 1,

View File

@ -71,7 +71,7 @@ namespace Spine
// spacing = frames[frames.Length + PREV_VALUE];
// else {
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time, ENTRIES);
// int frame = Animation::binarySearch(frames, time, ENTRIES);
// spacing = frames[frame + PREV_VALUE];
// float frameTime = frames[frame];
// float percent = GetCurvePercent(frame / ENTRIES - 1,

View File

@ -75,7 +75,7 @@ namespace Spine
// y = frames[frames.Length + PREV_Y] * bone.data.scaleY;
// } else {
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time, ENTRIES);
// int frame = Animation::binarySearch(frames, time, ENTRIES);
// x = frames[frame + PREV_X];
// y = frames[frame + PREV_Y];
// float frameTime = frames[frame];

View File

@ -74,7 +74,7 @@ namespace Spine
// y = frames[frames.Length + PREV_Y];
// } else {
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time, ENTRIES);
// int frame = Animation::binarySearch(frames, time, ENTRIES);
// x = frames[frame + PREV_X];
// y = frames[frame + PREV_Y];
// float frameTime = frames[frame];

View File

@ -102,7 +102,7 @@ namespace Spine
// shear = frames[i + PREV_SHEAR];
// } else {
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time, ENTRIES);
// int frame = Animation::binarySearch(frames, time, ENTRIES);
// rotate = frames[frame + PREV_ROTATE];
// translate = frames[frame + PREV_TRANSLATE];
// scale = frames[frame + PREV_SCALE];

View File

@ -124,7 +124,7 @@ namespace Spine
// b2 = frames[i + PREV_B2];
// } else {
// // Interpolate between the previous frame and the current frame.
// int frame = Animation.BinarySearch(frames, time, ENTRIES);
// int frame = Animation::binarySearch(frames, time, ENTRIES);
// r = frames[frame + PREV_R];
// g = frames[frame + PREV_G];
// b = frames[frame + PREV_B];