has_feature


Description:

public Bool has_feature (Context context, FeatureID feature)

Checks if a given feature is currently available

Cogl does not aim to be a lowest common denominator API, it aims to expose all the interesting features of GPUs to application which means applications have some responsibility to explicitly check that certain features are available before depending on them.

Parameters:

context

A Context pointer

feature

A FeatureID

Returns:

true if the feature is currently supported or false if not.


Namespace: Cogl
Package: doc