makeGL

fun makeGL(width: Int, height: Int, sampleCnt: Int, stencilBits: Int, fbId: Int, fbFormat: Int): BackendRenderTarget

Creates BackendRenderTarget from GL framebuffer.

Parameters

stencilBits

If wrapping in a Surface we require them to be either 0, 8 or 16.

Throws

if returned nullptr