Cogl.MetaTextureCallback

function onMetaTextureCallback(sub_texture: Cogl.Texture, sub_texture_coords: Number(gfloat), meta_coords: Number(gfloat)): void {
}
  

A callback used with Cogl.meta_texture_foreach_in_region to retrieve details of all the low-level Cogl.Texture<!-- -->s that make up a given Cogl.MetaTexture.

Since 1.10

sub_texture

A low-level Cogl.Texture making up part of a Cogl.MetaTexture.

sub_texture_coords

A float 4-tuple ordered like (tx1,ty1,tx2,ty2) defining what region of the current sub_texture maps to a sub-region of a Cogl.MetaTexture. (tx1,ty1) is the top-left sub-region coordinate and (tx2,ty2) is the bottom-right. These are low-level texture coordinates.

meta_coords

A float 4-tuple ordered like (tx1,ty1,tx2,ty2) defining what sub-region of a Cogl.MetaTexture this low-level sub_texture maps too. (tx1,ty1) is the top-left sub-region coordinate and (tx2,ty2) is the bottom-right. These are high-level meta-texture coordinates.