---
name: "Clutter::Cogl::MaterialLayer"
section: "3pm"
platform: "linux"
package: "libclutter-perl"
version: "1.002-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Clutter::Cogl::MaterialLayer"
---

# Clutter::Cogl::MaterialLayer(3pm)

## 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.
