|Modifier and Type||Field and Description|
The name of the attribute in the GLSL sources.
|Constructor and Description|
Creates a new GL attribute.
|Modifier and Type||Method and Description|
Sets the vertex attribute to whatever was attached via
public final String name
public Attribute(int program, int index)
program- The identifier of a compiled and linked GLSL shader program.
index- The index of the attribute. After this instance has been constructed, the name of the attribute is available via the
public void setBuffer(float buffer, int size)
bind()to attach vertices in
buffer(each of size
sizeelements) to this
buffer- Buffer to bind to this attribute.
size- Number of elements per vertex.
public void bind()
Should be called before each drawing call.