MetaTextureCallback


Description:

public delegate void MetaTextureCallback (Texture sub_texture, float sub_texture_coords, float meta_coords)

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

Parameters:

sub_texture

A low-level Texture making up part of a 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 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 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.

user_data

A private pointer passed to cogl_meta_texture_foreach_in_region.


Namespace: Cogl
Package: doc