## ZBuffer(bitmap)

Constructor

#### # new ZBuffer(bitmap)

Create a ZBuffer. A ZBuffer must be set as current before using it.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bitmap` | Bitmap | the bitmap to draw to or null for the screen.

View Source doc/classes.js, line 291

# Methods

#### # Clear(z)

Clear ZBuffer with given value.

##### Parameters:

Name | Type | Description
--- | --- | ---
`z` | number | value to use for clearing.

View Source doc/classes.js, line 296

#### # Set()

Set this ZBuffer as current.

View Source doc/classes.js, line 300