Interface TerrainCache
- All Known Implementing Classes:
TerrainGridCache
public interface TerrainCache
Fetches data from a source to the clipmap destination data through updateRegion.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getEyeCoords
(float[] destinationData, int sourceX, int sourceY, ReadOnlyVector3 eyePos) float
getHeight
(int x, int z) float
getSubHeight
(float x, float z) boolean
isValid()
void
setCurrentPosition
(int x, int y) Tell the cache the current position so that it can start loading affected tilesvoid
setMailBox
(DoubleBufferedList<Region> mailBox) void
shutdown()
void
updateRegion
(FloatBuffer destinationData, int sourceX, int sourceY, int width, int height) Update destinationData from cache in specified region
-
Method Details
-
setCurrentPosition
void setCurrentPosition(int x, int y) Tell the cache the current position so that it can start loading affected tiles- Parameters:
x
- the current abscissay
- the current ordinate
-
getHeight
float getHeight(int x, int z) -
getSubHeight
float getSubHeight(float x, float z) -
updateRegion
Update destinationData from cache in specified region- Parameters:
destinationData
- the destination datasourceX
- the source abscissasourceY
- the source ordinatewidth
- the widthheight
- the height
-
getEyeCoords
-
isValid
boolean isValid() -
setMailBox
-
handleUpdateRequests
-
shutdown
void shutdown()
-