Class ExtrusionBucket


public class ExtrusionBucket extends RenderBucket
  • Field Details

    • idx

      public int[] idx
      indices for: 0. even sides, 1. odd sides, 2. roof, 3. roof outline, 4. mesh
    • off

      public int[] off
      indices offsets in bytes
  • Constructor Details

    • ExtrusionBucket

      public ExtrusionBucket(int level, float groundResolution, float[] colors)
      ExtrusionLayer for polygon geometries.
    • ExtrusionBucket

      public ExtrusionBucket(int level, float groundResolution, int color)
      ExtrusionLayer for triangle geometries / meshes.
  • Method Details

    • addMesh

      public void addMesh(GeometryBuffer element)
      Add MapElement which provides meshes
      Parameters:
      element - the map element to add
    • addPoly

      public void addPoly(GeometryBuffer element, float height, float minHeight)
      Add MapElement which provides polygons
      Parameters:
      element - the map element to add
      height - the maximum height of element
      minHeight - the minimum height of element
    • compile

      public void compile(ShortBuffer vboData, ShortBuffer iboData)
      Overrides:
      compile in class RenderBucket
    • clear

      public void clear()
      Description copied from class: RenderBucket
      Clear all resources.
      Overrides:
      clear in class RenderBucket
    • getColors

      public float[] getColors()
      Returns:
      the polygon colors (top, side, side, line)
    • getColor

      public int getColor()
      Returns:
      the mesh color
    • prepare

      protected void prepare()
      Description copied from class: RenderBucket
      Final preparation of content before compilation for stuff that should not be done on render-thread.
      Overrides:
      prepare in class RenderBucket
    • next

      public ExtrusionBucket next()
      Overrides:
      next in class Inlist<RenderBucket>