[name]

This buffer attribute class does not construct a VBO. Instead, it uses whatever VBO is passed in constructor and can later be altered via the *buffer* property.

It is required to pass additional params alongside the VBO. Those are: the GL context, the GL data type, the number of components per vertex and the number of vertices.

The most common use case for this class is when some kind of GPGPU calculation interferes or even produces the VBOs in question.

Constructor

[name]( [param:WebGLRenderingContext gl], [param:WebGLBuffer buffer], [param:GLenum type], [param:Integer itemSize], [param:Integer count] )

Properties

[property:WebGLBuffer buffer]

The current WebGLBuffer instance.

[property:Integer count]

The expected number of vertices in VBO.

[property:Integer itemSize]

How many values make up each item (vertex).

[property:Integer elementSize]

Stores the corresponding size in bytes for the current *type* property value.

Don't touch.

[property:GLenum type]

A WebGL Data Type describing the underlying VBO contents.

Setting this is only allowed with *setType*.

[property:Boolean isGLBufferAttribute]

Should be *true*.

Methods

[method:null setBuffer]( buffer )

Sets the *buffer* property.

[method:null setType]( type )

Sets the *type* property.

[method:null setItemSize]( itemSize )

Sets the *itemSize* property.

[method:null setCount]( count )

Sets the *count* property.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]