Class

MetaMultiTexture

since: 13

Description

final class Meta.MultiTexture : GObject.Object
{
  /* No available fields */
}
No description available.

Available since: 13

Hierarchy

hierarchy this MetaMultiTexture ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

meta_multi_texture_new

Creates a MetaMultiTexture with the given format. Each of the CoglTextures represents a plane.

since: 13

meta_multi_texture_new_simple

Creates a MetaMultiTexture for a “simple” texture, i.e. with only one plane, in a format that can be represented using CoglPixelFormat.

since: 13

Instance methods

meta_multi_texture_get_format

Returns the MetaMultiTextureFormat that is used by this texture.

since: 13

meta_multi_texture_get_height

Returns the height of the MetaMultiTexture. Prefer this over calling cogl_texture_get_height() on one of the textures, as that might give a different size when dealing with subsampling.

since: 13

meta_multi_texture_get_n_planes

Returns the number of planes for this texture. Note that this is entirely dependent on the CoglPixelFormat that is used. For example, simple RGB textures will have a single plane, while some more convoluted formats like NV12 and YUV 4:4:4 can have 2 and 3 planes respectively.

since: 13

meta_multi_texture_get_plane

Returns the n’th plane of the MetaMultiTexture. Note that it’s a programming error to use with an index larger than meta_multi_texture_get_n_planes().

since: 13

meta_multi_texture_get_width

Returns the width of the MetaMultiTexture. Prefer this over calling cogl_texture_get_width() on one of the textures, as that might give a different size when dealing with subsampling.

since: 13

meta_multi_texture_is_simple

A small function that checks whether the given multi texture uses a “simple” format, i.e. one that can be represented by a CoglPixelFormat.

since: 13

meta_multi_texture_to_string

Returns a string representation of multi_texture, useful for debugging purposes.

since: 13

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

Class structure

struct MetaMultiTextureClass {
  GObjectClass parent_class;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.