Interface TerrainCache

All Known Implementing Classes:
TerrainGridCache

public interface TerrainCache
Fetches data from a source to the clipmap destination data through updateRegion.
  • 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 abscissa
      y - the current ordinate
    • getHeight

      float getHeight(int x, int z)
    • getSubHeight

      float getSubHeight(float x, float z)
    • updateRegion

      void updateRegion(FloatBuffer destinationData, int sourceX, int sourceY, int width, int height)
      Update destinationData from cache in specified region
      Parameters:
      destinationData - the destination data
      sourceX - the source abscissa
      sourceY - the source ordinate
      width - the width
      height - the height
    • getEyeCoords

      void getEyeCoords(float[] destinationData, int sourceX, int sourceY, ReadOnlyVector3 eyePos)
    • isValid

      boolean isValid()
    • setMailBox

      void setMailBox(DoubleBufferedList<Region> mailBox)
    • handleUpdateRequests

      Set<Tile> handleUpdateRequests()
    • shutdown

      void shutdown()