renderToTextureInternal

inline fun renderToTextureInternal(width: Int, height: Int, render: (rb: AGFrameBuffer) -> Unit, hasDepth: Boolean = false, hasStencil: Boolean = false, msamples: Int = 1, use: (tex: AGTexture, texWidth: Int, texHeight: Int) -> Unit)