Dummy FlxSprite that allows you to cache FlxGraphics, and immediatly send them to GPU memory.
Constructor
Variables
nonRenderedCachedGraphics:Array<FlxGraphic> = []
Array containing all of the non rendered (not sent to GPU) cached graphics.
Methods
View in GitHub
cache(path:String):Void
Caches a graphic at specified path.
Parameters:
path | Path to the graphic. |
---|
View in GitHub
cacheGraphic(graphic:FlxGraphic):Void
Caches a graphic.
Parameters:
graphic | The FlxGraphic |
---|