Skip to content
Henryk Wollik edited this page Jul 28, 2014 · 1 revision

Class: Fbo

Fbo

new Fbo(width, |Number}, format)

Framebuffer object for offscreen rendering.

Parameters:
Name Type Argument Description
width Number

The width

|Number}

height - The height

format Fbo.Format <optional>

The format

Source:

Classes

Format

Methods

bind()

Binds the fbo.

Source:

bindTexture(unit)

Binds the texture rendered to.

Parameters:
Name Type Argument Description
unit Number <optional>

The texture unit

Source:

delete()

Deletes the fbo.

Source:

getHeight() → {Number}

Returns the height of the fbo.

Source:
Returns:
Type
Number

getSize(v) → {Vec2}

Returns the size of the fbo.

Parameters:
Name Type Argument Description
v Vec2 <optional>

Out size

Source:
Returns:
Type
Vec2

getWidth() → {Number}

Returns the width of the fbo.

Source:
Returns:
Type
Number

unbind()

Unbinds the fbo.

Source:

unbindTexture(unit)

Unbinds the texture rendered to.

Parameters:
Name Type Argument Description
unit Number <optional>

The texture unit

Source:

Generated with wicked.