check_extension


Description:


public bool check_extension (string name, string ext)

Check whether name occurs in list of extensions in ext.

Note:

OpenGL is an implementation detail for Cogl and so it's not appropriate to expose OpenGL extensions through the Cogl API.

This function can be replaced by the following equivalent code:

  CoglBool retval = (strstr (ext, name) != NULL) ? TRUE : FALSE;

Parameters:

name

extension to check for

ext

list of extensions

Returns:

true if the extension occurs in the list, false otherwise.


Namespace: Cogl
Package: cogl-1.0