makeGL
fun makeGL(width: Int, height: Int, isMipmapped: Boolean, textureId: Int, textureTarget: Int, textureFormat: Int): BackendTexture
Creates BackendTexture from GL texture.
Parameters
width
width of the BackendTexture to be created
height
height of the BackendTexture to be created
isMipmapped
if the passed textureId has a GL mipmap, this should be true, otherwise false
textureId
GL id of the texture to use
textureTarget
GL enum, must be valid texture target for 2D, e.g. GL_TEXTURE_2D
textureFormat
GL enum, must be valid color format, e.g. GL_RGBA or GL_BGRA_INTEGER