OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:stateTime
(Results
1 - 3
of
3
) sorted by null
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
Animation.java
95
* @param
stateTime
the time spent in the state represented by this animation.
98
public TextureRegion getKeyFrame (float
stateTime
, boolean looping) {
114
TextureRegion frame = getKeyFrame(
stateTime
);
123
* @param
stateTime
125
public TextureRegion getKeyFrame (float
stateTime
) {
126
int frameNumber = getKeyFrameIndex(
stateTime
);
131
* @param
stateTime
133
public int getKeyFrameIndex (float
stateTime
) {
136
int frameNumber = (int)(
stateTime
/ frameDuration);
166
lastStateTime =
stateTime
;
[
all
...]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
AnimationTest.java
35
public float
stateTime
;
40
this.
stateTime
= (float)Math.random();
44
stateTime
+= deltaTime;
86
TextureRegion frame = caveman.headsLeft ? leftWalk.getKeyFrame(caveman.
stateTime
, true) : rightWalk.getKeyFrame(
87
caveman.
stateTime
, true);
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/superkoalio/
SuperKoalio.java
63
float
stateTime
= 0;
155
koala.
stateTime
+= deltaTime;
294
frame = stand.getKeyFrame(koala.
stateTime
);
297
frame = walk.getKeyFrame(koala.
stateTime
);
300
frame = jump.getKeyFrame(koala.
stateTime
);
Completed in 82 milliseconds