Method GL.GLSLUtils.VertexBuffer()->add_attribute()


Method add_attribute

void add_attribute(string name, int type, bool normalize, int size)

Description

Add a generic attribute named name, of the type type (eg, GL_FLOAT), normalized or not of size size.

As an example add_vec2(name) is an alias for add_attribute( name, GL_FLOAT, GL_FALSE, 2 )