Class CacheLayer

java.lang.Object
mindustry.graphics.CacheLayer
Direct Known Subclasses:
CacheLayer.ShaderLayer

public class CacheLayer extends Object
  • Field Details

  • Constructor Details

    • CacheLayer

      public CacheLayer()
  • Method Details

    • add

      public static void add(CacheLayer... layers)
      Registers cache layers that will render before the 'normal' layer.
    • addLast

      public static void addLast(CacheLayer... layers)
      Register CacheLayers at the end of the array. This will render over "normal" tiles. This is likely not the method you want to use.
    • add

      public static void add(int index, CacheLayer layer)
      Adds a cache layer at a certain position. All layers >= this index are shifted upwards.
    • init

      public static void init()
      Loads default cache layers.
    • begin

      public void begin()
      Called before the cache layer begins rendering. Begin FBOs here.
    • end

      public void end()
      Called after the cache layer ends rendering. Blit FBOs here.