Class TextureGridCache
java.lang.Object
com.ardor3d.extension.terrain.client.TextureGridCache
- All Implemented Interfaces:
TextureCache
,Runnable
Special tile/grid based cache for texture data
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionTextureGridCache
(TextureCache parentCache, int cacheSize, TextureSource source, int tileSize, int destinationSize, TextureConfiguration textureConfiguration, int clipmapLevel, int requestedLevel, ThreadPoolExecutor tileThreadService) -
Method Summary
Modifier and TypeMethodDescriptionint
getColor
(int x, int z) int
getSubColor
(float x, float z) boolean
isValid()
void
run()
void
setCurrentPosition
(int x, int y) void
setFunction
(SourceCacheFunction function) void
setMailBox
(DoubleBufferedList<Region> mailBox) void
shutdown()
void
updateRegion
(ByteBuffer destinationData, int sourceX, int sourceY, int destX, int destY, int width, int height)
-
Constructor Details
-
TextureGridCache
public TextureGridCache(TextureCache parentCache, int cacheSize, TextureSource source, int tileSize, int destinationSize, TextureConfiguration textureConfiguration, int clipmapLevel, int requestedLevel, ThreadPoolExecutor tileThreadService)
-
-
Method Details
-
getDebugTiles
-
handleUpdateRequests
- Specified by:
handleUpdateRequests
in interfaceTextureCache
-
setCurrentPosition
public void setCurrentPosition(int x, int y) - Specified by:
setCurrentPosition
in interfaceTextureCache
-
run
public void run() -
getColor
public int getColor(int x, int z) - Specified by:
getColor
in interfaceTextureCache
-
getSubColor
public int getSubColor(float x, float z) - Specified by:
getSubColor
in interfaceTextureCache
-
updateRegion
public void updateRegion(ByteBuffer destinationData, int sourceX, int sourceY, int destX, int destY, int width, int height) - Specified by:
updateRegion
in interfaceTextureCache
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceTextureCache
-
setMailBox
- Specified by:
setMailBox
in interfaceTextureCache
-
getFunction
-
setFunction
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceTextureCache
-