Cogl.Onscreen.queue_damage_region

### Method

# Cogl Onscreenqueue_damage_region

#### Declaration [src]

    void
    cogl_onscreen_queue_damage_region (
      CoglOnscreen* onscreen,
      const int* rectangles,
      int n_rectangles
    )

#### Description [src]

Implementation for https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_partial_update.txt This immediately queues state to OpenGL that will be used for the next swap. This needs to be called every frame.

The expected values are independent of any viewport transforms applied to the framebuffer.

#### Parameters

`rectangles`

  Type: `const int*`

  An array of integer 4-tuples representing damaged rectangles as (x, y, width, height) tuples.

  The data is owned by the caller of the function.

`n_rectangles`

  Type: `int`

  The number of 4-tuples to be read from `rectangles`.