int AG_InitGraphics (const char *drivers)
void AG_DestroyGraphics (void)
int AG_InitGUI (Uint flags)
void AG_DestroyGUI (void)
AG_InitGraphics() function initializes the Agar GUI system.
drivers argument is NULL (the usual case), Agar selects the "best" driver available
on the current platform.
drivers is non-NULL, it should be a comma-separated list of drivers, in order of
preference (the special strings "<OpenGL>" and "<SDL>" may be used to select
any driver with GL or SDL capability).
The list of compiled-in drivers may be obtained by calling
AG_ListDriverNames(3). Driver-specific parameters (which are documented on the driver's respective
manual page) may be specified as a colon-separated list between
AG_DestroyGraphics() routine shuts down and releases all resources allocated by the Agar-GUI
AG_InitGUI() routine provides an alternative to
AG_InitGraphics(), which does not create any driver instance on initialization.
AG_InitGraphics() is limited to a single Agar driver instance, specialized applications may
need to create multiple driver instances (e.g., an Agar application using
X11 may establish multiple connections to multiple X servers).
This may be done by calling
AG_InitGUI(), and creating one or more driver instances with