protected int[] getGLVersion(String renderer) {
        int maj = -1, min = -1;
        switch (settings.getRenderer()) {
            case AppSettings.LWJGL_OPENGL2:
                maj = 2;
                min = 0;
                break;
            case AppSettings.LWJGL_OPENGL30:
                maj = 3;
                min = 0;
                break;
            case AppSettings.LWJGL_OPENGL31:
                maj = 3;
                min = 1;
                break;
            case AppSettings.LWJGL_OPENGL32:
                maj = 3;
                min = 2;
                break;
            case AppSettings.LWJGL_OPENGL33:
                maj = 3;
                min = 3;
                break;
            case AppSettings.LWJGL_OPENGL40:
                maj = 4;
                min = 0;
                break;
            case AppSettings.LWJGL_OPENGL41:
                maj = 4;
                min = 1;
                break;
            case AppSettings.LWJGL_OPENGL42:
                maj = 4;
                min = 2;
                break;
            case AppSettings.LWJGL_OPENGL43:
                maj = 4;
                min = 3;
                break;
            case AppSettings.LWJGL_OPENGL44:
                maj = 4;
                min = 4;
                break;
            case AppSettings.LWJGL_OPENGL45:
                maj = 4;
                min = 5;
                break;
        }
        return maj == -1 ? null : new int[] { maj, min };
    }
Accesses the listener that receives events related to this context.

@return the pre-existing instance
jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java