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

@:noCompletion@:noDocnew (window:Int, g1:Graphics, g2:Graphics, g4: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 onlyheight:Int

Returns the height of the framebuffer in pixels.

read onlywidth:Int

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

Methods

@:noCompletion@:noDocinit (g1:Graphics, g2:Graphics, g4:Graphics):Void