Package mindustry.graphics
Class CacheLayer
java.lang.Object
mindustry.graphics.CacheLayer
- Direct Known Subclasses:
CacheLayer.ShaderLayer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic CacheLayer[]
static CacheLayer
static CacheLayer
int
static CacheLayer
static CacheLayer
static CacheLayer
static CacheLayer
static CacheLayer
static CacheLayer
static CacheLayer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(int index, CacheLayer layer) Adds a cache layer at a certain position.static void
add
(CacheLayer... layers) Registers cache layers that will render before the 'normal' layer.static void
addLast
(CacheLayer... layers) Register CacheLayers at the end of the array.void
begin()
Called before the cache layer begins rendering.void
end()
Called after the cache layer ends rendering.static void
init()
Loads default cache layers.
-
Field Details
-
water
-
mud
-
cryofluid
-
tar
-
slag
-
arkycite
-
space
-
normal
-
walls
-
all
-
id
public int id
-
-
Constructor Details
-
CacheLayer
public CacheLayer()
-
-
Method Details
-
add
Registers cache layers that will render before the 'normal' layer. -
addLast
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
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.
-