module T : Vertex.VERTEX
Associated vertex structure
This module provides a simple pre-initialized structure with some useful attributes :
- position, which should be refered to as "position" , which stores values of type Vector3f.t .
- color, which should be refered to as "color" , which stores values of type Color.t .
- uv, which should be refered to as "uv" , which stores values of type Vector2f.t .
- normal, which should be refered to as "normal" , which stores values of type Vector3f.t .
module T : Vertex.VERTEX
val create : ?position:OgamlMath.Vector3f.t -> ?color:Color.t -> ?uv:OgamlMath.Vector2f.t -> ?normal:OgamlMath.Vector3f.t -> unit -> T.s Vertex.t
val position : (OgamlMath.Vector3f.t, T.s) Vertex.Attribute.s
val color : (Color.t, T.s) Vertex.Attribute.s
val uv : (OgamlMath.Vector2f.t, T.s) Vertex.Attribute.s
val normal : (OgamlMath.Vector3f.t, T.s) Vertex.Attribute.s