Module OgamlGraphics.Model.Vertex

Represents a particular vertex of a model
type t
Type of a model vertex
val create : position:OgamlMath.Vector3f.t -> ?normal:OgamlMath.Vector3f.t -> ?uv:OgamlMath.Vector2f.t -> ?color:Color.t -> unit -> t
Creates a model vertex
val position : t -> OgamlMath.Vector3f.t
Returns the position of a model vertex
val normal : t -> OgamlMath.Vector3f.t option
Returns the normal of a model vertex
val uv : t -> OgamlMath.Vector2f.t option
Returns the UV coordinates associated to a model vertex
val color : t -> Color.t option
Returns the color of a model vertex