Constructor
new Buffer(locationName, data, rows, cols, target, type, divisor)
Creates an instance of Buffer.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
locationName |
string | ||
data |
any | ||
rows |
number | ||
cols |
number | ||
target |
number | ||
type |
number | ||
divisor |
number | 1 |
Properties:
Name | Type | Description |
---|---|---|
data |
any |
- Source:
Classes
Methods
bind(gl)
binf buffer
Parameters:
Name | Type | Description |
---|---|---|
gl |
WebGLContext |
- Source:
create(gl, locations)
Create and binf buffer
Parameters:
Name | Type | Description |
---|---|---|
gl |
WebGLContext | |
locations |
Object |
- Source:
destruct()
Destruct class
- Source:
upload(gl, enable)
Upload buffer
Parameters:
Name | Type | Description |
---|---|---|
gl |
WebGLContext | |
enable |
boolean |
- Source: