You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/loader/Cache.js
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -244,18 +244,24 @@ Phaser.Cache.prototype = {
244
244
},
245
245
246
246
/**
247
-
* Add a BitmapData object in to the cache.
247
+
* Add a BitmapData object to the cache.
248
248
*
249
249
* @method Phaser.Cache#addBitmapData
250
250
* @param {string} key - Asset key for this BitmapData.
251
251
* @param {Phaser.BitmapData} bitmapData - The BitmapData object to be addded to the cache.
252
-
* @param {Phaser.FrameData} [frameData] - Optional FrameData set associated with the given BitmapData.
252
+
* @param {Phaser.FrameData|null} [frameData=(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.
253
253
* @return {Phaser.BitmapData} The BitmapData object to be addded to the cache.
0 commit comments