Class ExtrusionBuckets


public class ExtrusionBuckets extends MapTile.TileData
  • Field Details

    • buckets

      public ExtrusionBucket buckets
    • compiled

      public boolean compiled
    • animTime

      public long animTime
    • zoomLevel

      public final int zoomLevel
    • x

      public final double x
    • y

      public final double y
    • ibo

      public BufferObject ibo
    • vbo

      public BufferObject vbo
  • Constructor Details

    • ExtrusionBuckets

      public ExtrusionBuckets(MapTile tile)
  • Method Details

    • addMeshElement

      public void addMeshElement(GeometryBuffer element, float groundScale, int color)
      Add mesh element to corresponding ExtrusionBucket
      Parameters:
      element - the MapElement as mesh
      groundScale - the scale of ground
      color - the color of element
    • addPolyElement

      public void addPolyElement(GeometryBuffer element, float groundScale, float[] colors, int height, int minHeight)
      Add poly element to corresponding ExtrusionBucket
      Parameters:
      element - the MapElement as polygon
      groundScale - the scale of ground
      colors - the colors (top, side, side, line) of element
      height - the height of extrusion
      minHeight - the minimum height of extrusion
    • resetBuckets

      public void resetBuckets(ExtrusionBucket el)
      Set new ExtrusionBuckets and clear previous.
    • buckets

      public ExtrusionBucket buckets()
      Get root bucket
    • dispose

      protected void dispose()
      Specified by:
      dispose in class MapTile.TileData
    • prepare

      public void prepare()
    • compile

      public boolean compile()