Class CachedRenderingSystem

java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.CachedRenderingSystem
All Implemented Interfaces:
Disposable, KryoSerializable

public final class CachedRenderingSystem extends GameSystem
Allows to define layers of static / cached graphics. Suits best for the graphics that do not change every frame (for example, tiles on map / static parts of towers). Uses SpriteCache and stores graphics on GPU - CPU won't have to send vertex data every frame. Does nothing by itself, layers must be rendered manually. It is just a convenience system for SpriteCaches
  • Constructor Details

    • CachedRenderingSystem

      public CachedRenderingSystem()
  • Method Details