Wiki

Clone wiki

glxx / UsingGLX

#include <glxx/gl_3_3_core.h>
#include <glXxx/glx_sgi_swap_control.h>

on_OpenGL_init()
{
    if (!has_glx_sgi_swap_control())
        // GLX_SGI_swap_control is not supported.
    if (!load_glx_sgi_swap_control())
        // Could not load GLX_SGI_swap_control.

    glXSwapIntervalSGI(1);
    
    //...
}

on_OpenGL_paint()
{
    // ...
}

Updated