Interface DecomposeWhenDrawn<T extends Pure>

Type Parameters:
T - The specific Pure class this can be decomposed to.
All Known Implementing Classes:
GCurve, GLine, GPoint, GPolygon, GPolyline, GTri

public interface DecomposeWhenDrawn<T extends Pure>
Marker Interface which denotes that an instance of this class, (Usually a GObject) can ve "decomposed" or otherwise broken down to simpler pure (Pure) geometry which is further wrapped in a RenderState which then finally can be drawn by the SceneRenderer.
Author:
Lehlogonolo Poole
  • Method Details

    • decompose

      void decompose()
      The actual decomposition.
    • getDecomposeList

      ArrayList<RenderState<T,GObject>> getDecomposeList()
      Fetches the actual decomposition list.
      Returns:
      The arraylist of decomposed stuff
    • invalidateAll

      default void invalidateAll()
      Invalidates every single render state within getDecomposeList()