Module OgamlGraphics.VertexArray.SimpleVertex

Simple pre-initialized 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
Associated vertex structure
val create : ?position:OgamlMath.Vector3f.t -> ?color:Color.t -> ?uv:OgamlMath.Vector2f.t -> ?normal:OgamlMath.Vector3f.t -> unit -> T.s Vertex.t
Creates a vertex with predefined attributes
val position : (OgamlMath.Vector3f.t, T.s) Vertex.Attribute.s
Position attribute
val color : (Color.t, T.s) Vertex.Attribute.s
Color attribute
val uv : (OgamlMath.Vector2f.t, T.s) Vertex.Attribute.s
UV attribute
val normal : (OgamlMath.Vector3f.t, T.s) Vertex.Attribute.s
Normal attribute