Module OgamlGraphics.VertexArray.Vertex.Attribute

Manipulation of attributes

This module provides a way to set and access the attributes of a vertex.

type ('a,'b) s
Type of an attribute
val set : 'b t -> ('a, 'b) s -> 'a -> unit
Sets the value of a vertex's attribute
val get : 'b t -> ('a, 'b) s -> 'a
Gets the value of a vertex's attribute. Raises Unbound_attribute if the attribute is not initialized.
val name : ('a, 'b) s -> string
Returns the name of an attribute, that is, the name that will refer to this attribute in a GLSL program.
val atype : ('a, 'b) s -> 'a AttributeType.s
Returns the type of an attribute