allocate


Description:

public Bool allocate () throws Error

Explicitly allocates a configured Framebuffer allowing developers to check and handle any errors that might arise from an unsupported configuration so that fallback configurations may be tried.

<note>Many applications don't support any fallback options at least when they are initially developed and in that case the don't need to use this API since Cogl will automatically allocate a framebuffer when it first gets used. The disadvantage of relying on automatic allocation is that the program will abort with an error message if there is an error during automatic allocation.</note>

Parameters:

this

A Framebuffer

Returns:

true if there were no error allocating the framebuffer, else false.