Cache#addBitmapData()

addBitmapData(key, bitmapData, frameData) → {Phaser.BitmapData}

Add a BitmapData object to the cache.

Parameters
Name Type Argument Default Description
key string

The key that this asset will be stored in the cache under. This should be unique within this cache.

bitmapData Phaser.BitmapData

The BitmapData object to be addded to the cache.

frameData Phaser.FrameData | null <optional>
(auto create)

Optional FrameData set associated with the given BitmapData. If not specified (or undefined) a new FrameData object is created containing the Bitmap's Frame. If null is supplied then no FrameData will be created.

Returns

The BitmapData object to be addded to the cache.

Source code: loader/Cache.js (Line 437)
doc_phaser
2017-02-14 10:39:50
Comments
Leave a Comment

Please login to continue.