Function

CoglOnscreenDirtyCallback

Declaration

void
OnscreenDirtyCallback (
  CoglOnscreen* onscreen,
  const CoglOnscreenDirtyInfo* info,
  void* user_data
)

Description [src]

Is a callback that can be registered via cogl_onscreen_add_dirty_callback() to be called when the windowing system determines that a region of the onscreen window has been lost and the application should redraw it.

Stability:Unstable
Available since:1.16

Parameters

onscreen CoglOnscreen
 

The onscreen that the frame is associated with.

 The data is owned by the caller of the function.
info CoglOnscreenDirtyInfo
 

A CoglOnscreenDirtyInfo struct containing the details of the dirty area.

 The data is owned by the caller of the function.
user_data void*
 

The user pointer passed to cogl_onscreen_add_frame_callback()

 The argument can be NULL.
 The data is owned by the caller of the function.