VISH  0.2
Public Member Functions | Public Attributes
Wizt::WebGLVertexAttribute Struct Reference

List of all members.

Public Member Functions

Public Attributes


Constructor & Destructor Documentation

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);

The documentation for this struct was generated from the following file: