set_update_region


Description:

public void set_update_region (Region? region)

Sets the region to be updated by this texture.

Together with [property@Gdk.GLTextureBuilder:update-texture] this describes an update of a previous texture.

When rendering animations of large textures, it is possible that consecutive textures are only updating contents in parts of the texture. It is then possible to describe this update via these two properties, so that GTK can avoid rerendering parts that did not change.

An example would be a screen recording where only the mouse pointer moves.

Parameters:

this

a `GdkGLTextureBuilder`

region

the region to update