vertex

Types

VertexArray[T] = object
  id: VertexArrayId
  buffers: seq[VertexBufferId]
  vertexCount: int

Procs

proc `$`[T](self: VertexArray[T]): string
Stringify a vertex array
proc newVertexArray[T](vertices: openArray[T]): VertexArray[T]
Creates a vertex array instance

Templates

template draw[T](self: VertexArray[T])
Draws a vertex array