Clutter::Cogl::MaterialLayer(3pm)

Clutter::Cogl::MaterialLayer3pm

Methods

materialfilter = $layer->get_mag_filter

Query the currently set magnifying filter for a cogl material layer.

materialfilter = $layer->get_min_filter

Query the currently set downscaling filter for a cogl material layer.

handle = $layer->get_texture

This lets you extract a Clutter::Cogl::Texture handle for a specific layer.

Note: In the future, we may support purely GLSL based layers which will likely return undef if you try to get the texture. Considering this, you should call Clutter::Cogl::MaterialLayer::get_type() first, to check it is of type 'texture'.

materiallayertype = $layer->get_type

Retrieves the type of the layer

Currently there is only one type of layer defined, 'texture'; but considering that we may add purely GLSL based layers in the future, you should write code that checks the type first.

Enums and flags

enum Clutter::Cogl::MaterialFilter

•

'nearest' / 'COGL_MATERIAL_FILTER_NEAREST'

•

'linear' / 'COGL_MATERIAL_FILTER_LINEAR'

•

'nearest-mipmap-nearest' / 'COGL_MATERIAL_FILTER_NEAREST_MIPMAP_NEAREST'

•

'linear-mipmap-nearest' / 'COGL_MATERIAL_FILTER_LINEAR_MIPMAP_NEAREST'

•

'nearest-mipmap-linear' / 'COGL_MATERIAL_FILTER_NEAREST_MIPMAP_LINEAR'

•

'linear-mipmap-linear' / 'COGL_MATERIAL_FILTER_LINEAR_MIPMAP_LINEAR'

enum Clutter::Cogl::MaterialLayerType

•

'texture' / 'COGL_MATERIAL_LAYER_TYPE_TEXTURE'

From libclutter-perl 1.002-1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.