libgpcogl - API reference

GLI

void gpcogl_gli_init(int *argc, char *argv[]);

void gpcogl_gli_uninit(void);

extern const int gpcogl_ver_major, gpcogl_ver_minor, gpcogl_ver_patch;

Library initialization

The GLI layer is used to initialize OpenGL using some underlying libraries such as glut or Linux direct render manager. The GLI layer also takes a part in managing computation contexts.

Before any context is made gpcogl_gli_init() shall be called. GLI configuration is passed on in argc and argv, typically relayed from main(). The GLI may do platform-specific initialization in this call.

After the last context is freed, a gpcogl_gli_uninit() should be called to let the GLI clean up and free resources.

The user manual has more on specific GLIs.

Library API version

The API version of the binary package can be figured runtime in the usual major.minor.patch splitup using the variables gpcogl_ver_major, gpcogl_ver_minor, gpcogl_ver_patch.