Constructor and Description |
---|
SubSprite(ISprite delegate,
double uMin,
double vMin,
double uMax,
double vMax) |
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
ISprite.getInterpU(double) and ISprite.getInterpV(double) |
double |
getInterpU(double u) |
double |
getInterpV(double v) |
public SubSprite(ISprite delegate, double uMin, double vMin, double uMax, double vMax)
public void bindTexture()
ISprite
ISprite.getInterpU(double)
and ISprite.getInterpV(double)
bindTexture
in interface ISprite
public double getInterpU(double u)
getInterpU
in interface ISprite
u
- A value between 0 and 1public double getInterpV(double v)
getInterpV
in interface ISprite
v
- A value between 0 and 1