Class ImageTextureSource
java.lang.Object
com.ardor3d.extension.terrain.providers.image.ImageTextureSource
- All Implemented Interfaces:
TextureSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalled to initialize and setup the texture clipmap.int
getContributorId
(int clipmapLevel, Tile tile) Returns the contributing source id for the requested tile.getInvalidTiles
(int clipmapLevel, int tileX, int tileY, int numTilesX, int numTilesY) Returns which tiles that should be marked as invalid and updated in the requested region.Request for texture data for a tile.getValidTiles
(int clipmapLevel, int tileX, int tileY, int numTilesX, int numTilesY) Returns which tiles that contain data in the requested region.
-
Constructor Details
-
ImageTextureSource
-
-
Method Details
-
getConfiguration
Description copied from interface:TextureSource
Called to initialize and setup the texture clipmap.- Specified by:
getConfiguration
in interfaceTextureSource
- Returns:
- the configuration
- Throws:
Exception
- exception
-
getValidTiles
public Set<Tile> getValidTiles(int clipmapLevel, int tileX, int tileY, int numTilesX, int numTilesY) throws Exception Description copied from interface:TextureSource
Returns which tiles that contain data in the requested region.- Specified by:
getValidTiles
in interfaceTextureSource
- Parameters:
clipmapLevel
- the clipmap leveltileX
- the tile abscissatileY
- the tile ordinatenumTilesX
- the number of tiles on XnumTilesY
- the number of tiles on Y- Returns:
- the tiles that contain data in the requested region
- Throws:
Exception
- exception
-
getInvalidTiles
public Set<Tile> getInvalidTiles(int clipmapLevel, int tileX, int tileY, int numTilesX, int numTilesY) throws Exception Description copied from interface:TextureSource
Returns which tiles that should be marked as invalid and updated in the requested region.- Specified by:
getInvalidTiles
in interfaceTextureSource
- Parameters:
clipmapLevel
- the clipmap leveltileX
- the tile abscissatileY
- the tile ordinatenumTilesX
- the number of tiles on XnumTilesY
- the number of tiles on Y- Returns:
- the tiles that should be marked as invalid and updated in the requested region
- Throws:
Exception
- exception
-
getContributorId
Description copied from interface:TextureSource
Returns the contributing source id for the requested tile.- Specified by:
getContributorId
in interfaceTextureSource
- Parameters:
clipmapLevel
- the clipmap leveltile
- the tile- Returns:
- the contributing source id for the requested tile
-
getTile
Description copied from interface:TextureSource
Request for texture data for a tile.- Specified by:
getTile
in interfaceTextureSource
- Parameters:
clipmapLevel
- the clipmap leveltile
- the tile- Returns:
- the texture data for a tile
- Throws:
Exception
- exception
-