Module OgamlGraphics.VertexArray.Vertex

Creation and manipulation of vertices


Attribute Manipulation of attributes
AttributeType Attribute types


VERTEX Common signature to all vertex structures

This module provides a way to create and manipulate vertex structures and vertices.
A vertex is a collection attributes, and a vertex structure creates vertices that have the same attributes.

exception Sealed_vertex of string
Raised when trying to add an attribute to a sealed structure
exception Unsealed_vertex of string
Raised when trying to create a vertex from an unsealed structure
exception Unbound_attribute of string
Raised when trying to get the value of an unset attribute
type 'a t
Type of a vertex
val make : unit -> (module VERTEX)
Creates a new, custom vertex structure