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.

Constructor

new (window:Int, g1:Graphics, g2:Graphics, g4:Graphics, ?g5:Graphics)

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 onlyg5:Graphics

Returns a kha.graphics5.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.

Methods

init (g1:Graphics, g2:Graphics, g4:Graphics, ?g5:Graphics):Void