Cogl.MaterialLayer

Fields

None

Methods

get_mag_filter ()

get_min_filter ()

get_texture ()

get_type ()

get_wrap_mode_p ()

get_wrap_mode_s ()

get_wrap_mode_t ()

Details

class Cogl.MaterialLayer
get_mag_filter()
Returns:

the current downscaling filter

Return type:

Cogl.MaterialFilter

Queries the currently set downscaling filter for a material later

Deprecated since version 1.16: No replacement

get_min_filter()
Returns:

the current downscaling filter

Return type:

Cogl.MaterialFilter

Queries the currently set downscaling filter for a material layer

Deprecated since version 1.16: No replacement

get_texture()
Returns:

a #CoglHandle for the texture inside the layer

Return type:

object

Extracts a texture handle for a specific layer.

In the future Cogl may support purely GLSL based layers; for those layers this function which will likely return %COGL_INVALID_HANDLE if you try to get the texture handle from them. Considering this scenario, you should call Cogl.MaterialLayer.get_type() first in order check it is of type Cogl.MaterialLayerType.TEXTURE before calling this function.

Deprecated since version 1.16: No replacement

get_type()
Returns:

the type of the layer

Return type:

Cogl.MaterialLayerType

Retrieves the type of the layer

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

Deprecated since version 1.16: No replacement

get_wrap_mode_p()
Returns:

the wrap mode value for the p coordinate.

Return type:

Cogl.MaterialWrapMode

Gets the wrap mode for the ‘p’ coordinate of texture lookups on this layer. ‘p’ is the third coordinate.

New in version 1.4.

Deprecated since version 1.16: Use cogl_pipeline_layer_get_wrap_mode_p() instead

get_wrap_mode_s()
Returns:

the wrap mode value for the s coordinate.

Return type:

Cogl.MaterialWrapMode

Gets the wrap mode for the ‘s’ coordinate of texture lookups on this layer.

New in version 1.4.

Deprecated since version 1.16: Use cogl_pipeline_layer_get_wrap_mode_s() instead

get_wrap_mode_t()
Returns:

the wrap mode value for the t coordinate.

Return type:

Cogl.MaterialWrapMode

Gets the wrap mode for the ‘t’ coordinate of texture lookups on this layer.

New in version 1.4.

Deprecated since version 1.16: Use cogl_pipeline_layer_get_wrap_mode_t() instead