VISH
0.2
|
Wizt::WebGLVertexAttribute::WebGLVertexAttribute | ( | WebGLRenderContext & | WGLC, |
const RefPtr< ChunkBase > & | Data, | ||
const std::string & | name | ||
) | [inline] |
Load vertex buffer data in the form such as.
var vertices = [
0.15, 1.0, 0.0,
-1.0, -1.0, 0.0,
1.0, -1.0, 0.0
];
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.STATIC_DRAW);