Codename LogoCodename Logo

funkin.backend.system.GraphicCacheSprite

APIWiki

Dummy FlxSprite that allows you to cache FlxGraphics, and immediatly send them to GPU memory.

Constructor

Variables

@:value([])cachedGraphics:Array<FlxGraphic> = []

Array containing all of the graphics cached by this sprite.

@:value([])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