Next: , Previous: Events, Up: Top


34 Features

Run-time detection of Clutter features

34.1 Overview

Parts of Clutter depend on the underlying platform, including the capabilities of the backend used and the OpenGL features exposed through the Clutter and COGL API.

It is possible to ask whether Clutter has support for specific features at run-time.

See also cogl-get-features and <cogl-feature-flags>

34.2 Usage

— Function: clutter-feature-available (feature <clutter-feature-flags>) ⇒  (ret bool)

Checks whether feature is available. feature can be a logical OR of <clutter-feature-flags>.

feature
a <clutter-feature-flags>
ret
#t’ if a feature is available

Since 0.1.1

— Function: clutter-feature-get-all ⇒  (ret <clutter-feature-flags>)

Returns all the supported features.

ret
a logical OR of all the supported features.

Since 0.1.1