Class pyglet.graphics.vertexbuffer.VertexBufferObjectRegion

AbstractBufferRegion --+
                       |
                      VertexBufferObjectRegion
A mapped region of a VBO.

Methods

  __init__(self, buffer, start, end, array)
  invalidate(self)
Mark this region as changed.

Instance Variables

ctypes array array
Array of data, of the type and count requested by get_region.
(Inherited from pyglet.graphics.vertexbuffer.AbstractBufferRegion)

Method Details

invalidate

invalidate(self)

Mark this region as changed.

The buffer may not be updated with the latest contents of the array until this method is called. (However, it may not be updated until the next time the buffer is used, for efficiency).

Overrides:
AbstractBufferRegion.invalidate