Skip to content
Snippets Groups Projects
Commit 58e2d014 authored by faiface's avatar faiface
Browse files

clarify doc

parent ecce5fdc
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,8 @@ func (va *VertexArray) Draw() {
// UpdateData overwrites the current vertex array data starting at the index offset.
//
// Offset is not a number of bytes, instead, it's an index in the array.
//
// If offset is negative or offset+len(data)>len(originaldata) the program panics.
func (va *VertexArray) UpdateData(offset int, data []float64) {
DoNoBlock(func() {
gl.BindBuffer(gl.ARRAY_BUFFER, va.vbo)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment