Framebuffer
Functions
Link copied to clipboard
fun attachTexture(dc: DrawContext, texture: Texture, attachment: Int, textarget: Int = GL_TEXTURE_2D): Boolean
Attach a texture to the given FBO attachment point. The default textarget is GL_TEXTURE_2D; pass a specific cube-map face target (e.g. GL_TEXTURE_CUBE_MAP_POSITIVE_X) to attach a face of a cube-map texture. The same cube-map texture can be re-attached to the same FBO multiple times with different faces to render into all six faces of one cube map without rebinding the FBO.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Underlying GL framebuffer name. Created lazily on first access.
Link copied to clipboard
Link copied to clipboard
Frees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.