A Framebuffer object represents the framebuffer of a kha.Window, which typically contains a color, depth and stencil buffer. It is used to query Graphics interfaces for rendering images which are directly visible.

Variables

read onlyg1:Graphics

Returns a kha.graphics1.Graphics interface for the framebuffer.

read onlyg2:Graphics

Returns a kha.graphics2.Graphics interface for the framebuffer.

read onlyg4:Graphics

Returns a kha.graphics4.Graphics interface for the framebuffer.

read onlyheight:Int

Returns the height of the framebuffer in pixels.

read onlywidth:Int

Returns the width of the framebuffer in pixels.