BitmapLoadTask
Extends: FileLoadTask
Loads one bitmap. Decodes with the game's TextureLoader, so a large image doesn't stall a frame, falling back to Game.loadBitmapFile() for a drawable bitmap or a file it can't decode.
Constructor
new BitmapLoadTask(
game: BGE.Game,
bitmapName: string,
path: string,
options?: BGE.BitmapLoadOptions,
): BitmapLoadTaskParameters
game(BGE.Game)bitmapName(string)path(string)options(BGE.BitmapLoadOptions, optional, default: "invalid")
Instance Methods
loadFile(budgetMs: integer): boolean
Parameters
budgetMs(integer)
Returns
boolean
abort(): void
Returns
void
isDownloadedFileBad(): boolean
Returns
boolean