java.lang.Object
juuxel.libninepatch.TextureRegion<T>
- Type Parameters:
T- the texture type
Texture regions represent a partial region of a larger texture image.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe texture from which this region is cut.floatThe left edge of this region as a fraction from 0 to 1.floatThe right edge of this region as a fraction from 0 to 1.floatThe top edge of this region as a fraction from 0 to 1.floatThe bottom edge of this region as a fraction from 0 to 1. -
Constructor Summary
ConstructorsConstructorDescriptionTextureRegion(T texture, float u1, float v1, float u2, float v2)Constructs a texture region. -
Method Summary
-
Field Details
-
texture
The texture from which this region is cut. -
u1
public final float u1The left edge of this region as a fraction from 0 to 1. -
v1
public final float v1The top edge of this region as a fraction from 0 to 1. -
u2
public final float u2The right edge of this region as a fraction from 0 to 1. -
v2
public final float v2The bottom edge of this region as a fraction from 0 to 1.
-
-
Constructor Details
-
TextureRegion
Constructs a texture region.- Parameters:
texture- the texture from which this region is cutu1- The left edge of this region as a fraction from 0 to 1v1- the top edge of this region as a fraction from 0 to 1u2- the right edge of this region as a fraction from 0 to 1v2- the bottom edge of this region as a fraction from 0 to 1
-
-
Method Details