Assets paths helper class
Static variables
Static methods
staticgpuBitmap(key:String, ?library:String, avoidGPU:Bool = false):FlxGraphicAsset
Gets an image in any mod or base asset to the gpu when possible.
Parameters:
key | The path of the image |
---|---|
library | The image package. (ex shared). NOTE: Will search through other packages to find the image when possible. |
avoidGPU | Force loading to of the graphic to the cpu. |
Returns:
The image as a FlxGraphic
. Will retrun the image path if gpu caching is not possible.
See also: