buffer tag - tiagodinis/GParticles GitHub Wiki

Description: Tag that holds the definition of a buffer to load. A buffer is a 1 dimensional container of a given number of elements and type. Every type component defaults to 0 the buffer is first created.

Parent tag: private, global

Child tags: none

attribute type description
name string the string that identifies the buffer
type string buffer element type (float, vec2 or vec4 )
elements uint number of elements of the indicated type

Examples:

1)  <buffer name="lifetimes" elements=512 type="float" />

2)  <buffer name="velocities" elements=10 type="vec4" />