| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private PolygonRegionLoader. | |
| private EarClippingTriangulator |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Array | getDependencies(String fileName, FileHandle file, PolygonRegionLoader.
Implements abstract com. If the PSH file contains a line starting with |
| public PolygonRegion | load(AssetManager manager, String fileName, FileHandle file, PolygonRegionLoader.
Implements abstract com.
|
| public PolygonRegion | load(TextureRegion textureRegion, FileHandle
file handle to the shape definition file file)Loads a PolygonRegion from a PSH (Polygon SHape) file. |
| defaultParameters | back to summary |
|---|---|
| private PolygonRegionLoader. | |
| triangulator | back to summary |
|---|---|
| private EarClippingTriangulator triangulator | |
| PolygonRegionLoader | back to summary |
|---|---|
| public PolygonRegionLoader() | |
| PolygonRegionLoader | back to summary |
|---|---|
| public PolygonRegionLoader(FileHandleResolver resolver) | |
| getDependencies | back to summary |
|---|---|
| public Array Implements abstract com. If the PSH file contains a line starting with
| |
| load | back to summary |
|---|---|
| public PolygonRegion load(AssetManager manager, String fileName, FileHandle file, PolygonRegionLoader. Implements abstract com.
| |
| load | back to summary |
|---|---|
| public PolygonRegion load(TextureRegion textureRegion, FileHandle file) Loads a PolygonRegion from a PSH (Polygon SHape) file. The PSH file format defines the polygon vertices before triangulation: s 200.0, 100.0, ...
Lines not prefixed with "s" are ignored. PSH files can be created with external tools, eg:
| |
| Modifier and Type | Field and Description |
|---|---|
| public int | readerBuffer
what buffer size of the reader should be used to read the |
| public String[] | textureExtensions
the possible file name extensions of the texture file |
| public String | texturePrefix
what the line starts with that contains the file name of the texture for this |
| Access | Constructor and Description |
|---|---|
| public |
| readerBuffer | back to summary |
|---|---|
| public int readerBuffer what buffer size of the reader should be used to read the
| |
| textureExtensions | back to summary |
|---|---|
| public String[] textureExtensions the possible file name extensions of the texture file | |
| texturePrefix | back to summary |
|---|---|
| public String texturePrefix what the line starts with that contains the file name of the texture for this | |
| PolygonRegionParameters | back to summary |
|---|---|
| public PolygonRegionParameters() | |