GLtInit.initCheck

This function does the same work as gtk_gl_init() with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns %FALSE on failure.

This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.

struct GLtInit
static
bool
initCheck
(
ref string[] argv
)

Parameters

argv string[]

Address of the <parameter>argv</parameter> parameter of <function>main()</function>. Any parameters understood by gtk_gl_init() are stripped before return.

Return: %TRUE if the GUI has been successfully initialized, %FALSE otherwise.

Meta