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