PolygonRegionLoader
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final TextureRegion | |
| pack-priv final float[] | |
| pack-priv final short[] | |
| pack-priv final float[] |
| Access | Constructor and Description |
|---|---|
| public | PolygonRegion(TextureRegion
the region used for drawing region, float[] contains 2D polygon coordinates in pixels relative to source region vertices, short[] triangles)Creates a PolygonRegion by triangulating the polygon coordinates in vertices and calculates uvs based on that. |
| Modifier and Type | Method and Description |
|---|---|
| public TextureRegion | |
| public float[] | |
| public short[] | |
| public float[] |
| region | back to summary |
|---|---|
| pack-priv final TextureRegion region | |
| textureCoords | back to summary |
|---|---|
| pack-priv final float[] textureCoords | |
| triangles | back to summary |
|---|---|
| pack-priv final short[] triangles | |
| vertices | back to summary |
|---|---|
| pack-priv final float[] vertices | |
| PolygonRegion | back to summary |
|---|---|
| public PolygonRegion(TextureRegion region, float[] vertices, short[] triangles) Creates a PolygonRegion by triangulating the polygon coordinates in vertices and calculates uvs based on that. TextureRegion can come from an atlas.
| |
| getRegion | back to summary |
|---|---|
| public TextureRegion getRegion() | |
| getTextureCoords | back to summary |
|---|---|
| public float[] getTextureCoords() | |
| getTriangles | back to summary |
|---|---|
| public short[] getTriangles() | |
| getVertices | back to summary |
|---|---|
| public float[] getVertices() Returns the vertices in local space. | |