GlTextureFrameBuffer

Helper class for handling OpenGL framebuffer with only color attachment and no depth or stencil buffer. Intended for simple tasks such as texture copy, texture downscaling, and texture color conversion. This class is not thread safe and must be used by a thread with an active GL context.

Constructors

Link copied to clipboard
constructor(pixelFormat: Int)
Generate texture and framebuffer resources.

Properties

Link copied to clipboard
open val frameBufferId: Int
Link copied to clipboard
open val height: Int
Link copied to clipboard
open val textureId: Int
Link copied to clipboard
open val width: Int

Functions

Link copied to clipboard
open fun release()
Release texture and framebuffer.
Link copied to clipboard
open fun setSize(width: Int, height: Int)
(Re)allocate texture.