FrameBuffer
class FrameBuffer(val width: Int, val height: Int, val hasDepth: Boolean = false, val hasStencil: Boolean = false, var hasPackedDepthStencil: Boolean = false, val format: Pixmap.Format = Pixmap.Format.RGBA8888, val minFilter: TexMinFilter = TexMinFilter.LINEAR, val magFilter: TexMagFilter = TexMagFilter.LINEAR) : Preparable, Disposable
Encapsulates OpenGL frame buffer objects.
Author
Colton Daily
Parameters
width
the width of the framebuffer in pixels
height
the height of the framebuffer in pixels
hasDepth
whether to attach a depth buffer. Defaults to false.
hasStencil
whether to attach a stencil buffer. Defaults to false.
format
the format of the color buffer
Constructors
Link copied to clipboard
fun FrameBuffer(width: Int, height: Int, hasDepth: Boolean = false, hasStencil: Boolean = false, hasPackedDepthStencil: Boolean = false, format: Pixmap.Format = Pixmap.Format.RGBA8888, minFilter: TexMinFilter = TexMinFilter.LINEAR, magFilter: TexMagFilter = TexMagFilter.LINEAR)