public void Buffer(int refresh) { this.refresh = refresh; Gl.glGenBuffersARB(1, out bufferName); Gl.glBindBufferARB(Gl.GL_ARRAY_BUFFER_ARB, bufferName); GlHelper.GlBufferDataARB( Gl.GL_ARRAY_BUFFER_ARB, array, array.Length * elementSize, Gl.GL_STATIC_DRAW_ARB); }
public void Buffer(int refresh) { Gl.glGenBuffersARB(array.Length, bufferNames); for (int index = 0; index < array.Length; ++index) { Gl.glBindBufferARB(Gl.GL_ARRAY_BUFFER_ARB, bufferNames[index]); GlHelper.GlBufferDataARB( Gl.GL_ARRAY_BUFFER_ARB, array[index], array[index].Length * elementSize, Gl.GL_STATIC_DRAW_ARB); } }