Added getCompressedTextureName method

This commit is contained in:
Richard Davey 2021-10-05 18:30:17 +01:00
parent c0c17a1dd2
commit f376958ca1

View file

@ -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.
* *