updateSurface method

void updateSurface(
  1. int index,
  2. Surface surface
)

Replace the surface at index with surface.

Implementation

void updateSurface(int index, Surface surface) {
  _surfaces[index] = surface;
  updateBounds();
}