mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Added getCompressedTextureName method
This commit is contained in:
parent
c0c17a1dd2
commit
f376958ca1
1 changed files with 21 additions and 0 deletions
|
@ -1041,6 +1041,27 @@ var WebGLRenderer = new Class({
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*
|
||||||
|
* @method Phaser.Renderer.WebGL.WebGLRenderer#getCompressedTextureName
|
||||||
|
* @since 3.60.0
|
||||||
|
*
|
||||||
|
* @param {string} baseFormat - The Base Format to check.
|
||||||
|
* @param {GLenum} [format] - An optional GLenum format to check within the base format.
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
getCompressedTextureName: function (baseFormat, format)
|
||||||
|
{
|
||||||
|
var supportedFormats = this.compression[baseFormat.toUpperCase()];
|
||||||
|
|
||||||
|
if (format in supportedFormats)
|
||||||
|
{
|
||||||
|
return supportedFormats[format];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given compressed texture format is supported, or not.
|
* Checks if the given compressed texture format is supported, or not.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue