Module OgamlGraphics.VertexArray.Vertex.VERTEX

Common signature to all vertex structures
type s
Phantom type associated to this vertex structure for safety reasons
val attribute : string -> 'a AttributeType.s -> ('a, s) Attribute.s
Adds an attribute to this structure. Raises Sealed_vertex if the structure is sealed.
val seal : unit -> unit
Seals this structure. Once sealed, the structure can be used to create vertices but cannot receive new attributes. Raises Sealed_vertex if the structure is already sealed.
val create : unit -> s t
Creates a vertex following this structure. Raises Unsealed_vertex if the structure is not sealed.