Class: Multisample

og/webgl/Multisample~Multisample

new Multisample(handler, options)

Class represents multisample framebuffer.
Name Type Description
handler og.webgl.Handler WebGL handler.
options Object optional Framebuffer options:
Name Type Default Description
width number optional Framebuffer width. Default is handler canvas width.
height number optional Framebuffer height. Default is handler canvas height.
texture Object optional Texture to render.
depthComponent String "DEPTH_COMPONENT16" optional Specifies depth buffer size.
useDepth Boolean optional Using depth buffer during the rendering.

Members

handlerog.webgl.Handler

WebGL handler.

Methods

activate(){og.webgl.Framebuffer}

Activate framebuffer frame to draw.
Returns:
Type Description
og.webgl.Framebuffer Returns Current framebuffer.
Deactivate framebuffer frame.

isComplete(){boolean}

Returns framebuffer completed.
Returns:
Type Description
boolean -

setSize(width, height)

Sets framebuffer viewport size.
Name Type Description
width number Framebuffer width.
height number Framebuffer height.