NAME
Clutter::Cogl::MaterialLayer
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'
SEE ALSO
Clutter
COPYRIGHT
Copyright (C) 2006, 2007, 2008 OpenedHand Ltd
Copyright (C) 2009 Intel Corporation
This module is free software; you can redistribute it and/or modify it under the terms of either:
- •
-
the GNU Lesser General Public Library version 2.1; or
- •
-
the Artistic License, version 2.0.
See Clutter for the full copyright notice.