Cogl.TexturePixmapX11.prototype.set_damage_object
function set_damage_object(damage: Number(guint32), report_level: Cogl.TexturePixmapX11ReportLevel): void {
// Gjs wrapper for cogl_texture_pixmap_x11_set_damage_object()
}
Sets the damage object that will be used to track automatic updates to the texture. Damage tracking can be disabled by passing 0 for damage. Otherwise this damage will replace the one used if true was passed for automatic_updates to Cogl.TexturePixmapX11.new.
Note that Cogl will subtract from the damage region as it processes damage events.
Since 1.4
- damage
A X11 Damage object or 0
- report_level
The report level which describes how to interpret the damage events. This should match the level that the damage object was created with.