mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 17:48:45 +08:00
Minor changes.
This commit is contained in:
parent
6cf7dcf413
commit
68238d9032
@ -132,9 +132,7 @@ public class Animation {
|
||||
|
||||
/** Base class for frames that use an interpolation bezier curve. */
|
||||
abstract static public class CurveTimeline implements Timeline {
|
||||
static public final float LINEAR = 0;
|
||||
static public final float STEPPED = -1;
|
||||
static public final float BEZIER = -2;
|
||||
static public final float LINEAR = 0, STEPPED = -1, BEZIER = -2;
|
||||
static private final int BEZIER_SEGMENTS = 10;
|
||||
|
||||
private final float[] curves; // dfx, dfy, ddfx, ddfy, dddfx, dddfy, ...
|
||||
|
||||
@ -95,7 +95,7 @@ public class MixTest extends ApplicationAdapter {
|
||||
|
||||
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
||||
|
||||
// This shows how to manage state manually. See AnimationStatesTest.
|
||||
// This shows how to manage state manually. See SimpleTest1 for a higher level API using AnimationState.
|
||||
if (time > total) {
|
||||
// restart
|
||||
time = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user