| Name | Type | Description | 
|---|---|---|
| renderer | Renderer | The renderer this System works for. | 
Implements
Methods
This binds specified buffer. On first run, it will create the webGL buffers for the context too
| Name | Type | Description | 
|---|---|---|
| buffer | Buffer | the buffer to bind to the renderer | 
Binds an uniform buffer to at the given index.
A cache is used so a buffer will not be bound again if already bound.
| Name | Type | Description | 
|---|---|---|
| buffer | Buffer | the buffer to bind | 
| index | number | the base index to bind it to. | 
Binds a buffer whilst also binding its range. This will make the buffer start from the offset supplied rather than 0 when it is read.
| Name | Type | Attributes | Description | 
|---|---|---|---|
| buffer | Buffer | the buffer to bind | |
| index | number | <optional> | the base index to bind at, defaults to 0 | 
| offset | number | <optional> | the offset to bind at (this is blocks of 256). 0 = 0, 1 = 256, 2 = 512 etc | 
dispose all WebGL resources of all managed buffers
Will ensure the data in the buffer is uploaded to the GPU.
| Name | Type | Description | 
|---|---|---|
| buffer | Buffer | the buffer to update | 
Returns:
| Type | Description | 
|---|---|
| GlBuffer | 
Sets up the renderer context and necessary buffers.
creates and attaches a GLBuffer object tied to the current context.
| Name | Type | Description | 
|---|---|---|
| buffer | Buffer | 
Returns:
| Type | Description | 
|---|---|
| GlBuffer | 
Disposes buffer
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| buffer | Buffer | buffer with data | ||
| contextLost | boolean | <optional> | false | If context was lost, we suppress deleteVertexArray |