src/textures.js
function getCubeFaceOrder(gl, options) {
  options = options || {};
  return options.cubeFaceOrder || [
      gl.TEXTURE_CUBE_MAP_POSITIVE_X,
      gl.TEXTURE_CUBE_MAP_NEGATIVE_X,
      gl.TEXTURE_CUBE_MAP_POSITIVE_Y,
      gl.TEXTURE_CUBE_MAP_NEGATIVE_Y,
      gl.TEXTURE_CUBE_MAP_POSITIVE_Z,
      gl.TEXTURE_CUBE_MAP_NEGATIVE_Z,
    ];
}
function getCubeFaceOrder(gl, options) {
  options = options || {};
  return options.cubeFaceOrder || [
      gl.TEXTURE_CUBE_MAP_POSITIVE_X,
      gl.TEXTURE_CUBE_MAP_NEGATIVE_X,
      gl.TEXTURE_CUBE_MAP_POSITIVE_Y,
      gl.TEXTURE_CUBE_MAP_NEGATIVE_Y,
      gl.TEXTURE_CUBE_MAP_POSITIVE_Z,
      gl.TEXTURE_CUBE_MAP_NEGATIVE_Z,
    ];
}
function getCubeFaceOrder ( gl , options ) { options = options || { } ; return options . cubeFaceOrder || [ gl . TEXTURE_CUBE_MAP_POSITIVE_X , gl . TEXTURE_CUBE_MAP_NEGATIVE_X , gl . TEXTURE_CUBE_MAP_POSITIVE_Y , gl . TEXTURE_CUBE_MAP_NEGATIVE_Y , gl . TEXTURE_CUBE_MAP_POSITIVE_Z , gl . TEXTURE_CUBE_MAP_NEGATIVE_Z , ] ; }
Gets an array of cubemap face enums
@param {WebGLRenderingContext} gl the WebGLRenderingContext
@param {module:twgl.TextureOptions} options A TextureOptions object with whatever parameters you want set.
This is often the same options you passed in when you created the texture.
@return {number[]} cubemap face enums
@private
Gets an array of cubemap face enums