Class enchant.gl.Buffer
- Defined in: gl.enchant.js
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.gl.Buffer(params, array)
Controls peak and other array information.
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
bind()
Bind buffer.
|
|
destroy()
Destroy object.
|
|
unbind()
Unbind buffer.
|
Class Detail
enchant.gl.Buffer(params, array)
Controls peak and other array information.
Used as enchant.gl.Mesh property.
var index = [ 0, 1, 2, 2, 3, 0 ]; var indices = new Buffer(Buffer.INDICES, index);
- Parameters:
- {*} params
- parameter
- {Number[]} array
Method Detail
-
bind()Bind buffer.
-
destroy()Destroy object.
-
unbind()Unbind buffer.