public interface ISprite
bindTexture()
should be called before using the results from
getInterpU(double)
or getInterpV(double)
IMPORTANT: Unlike Minecraft's TextureAtlasSprite
this uses co-ordinates between 0 and 1, rather than 0
and 16!
Modifier and Type | Method and Description |
---|---|
void |
bindTexture()
Binds this sprites backing texture so that this sprite will be referenced when you use the results of
getInterpU(double) and getInterpV(double) |
double |
getInterpU(double u) |
double |
getInterpV(double v) |
void bindTexture()
getInterpU(double)
and getInterpV(double)
double getInterpU(double u)
u
- A value between 0 and 1double getInterpV(double v)
v
- A value between 0 and 1