func (buf *uintBuffer) Draw(ctx gl.Context, prg Program, mode gl.Enum) { ctx.DrawElements(mode, buf.count, gl.UNSIGNED_INT, 0) }
func (buf Buffer) DrawElements(ctx gl.Context, mode gl.Enum, count int, typ gl.Enum, offset int, before ...func(gl.Context)) { buf.Bind(ctx, before...) ctx.DrawElements(mode, count, typ, offset) }