Package org.lwjgl.egl

Class KHRCreateContext

java.lang.Object
org.lwjgl.egl.KHRCreateContext

public final class KHRCreateContext extends Object
Native bindings to the KHR_create_context extension.

With the advent of new versions of OpenGL which deprecate features and/or break backward compatibility with older versions, there is a need and desire to indicate at context creation which interface will be used. This extension adds a new context creation routine with attributes specifying the OpenGL version, context properties, and profile requested for the context. It also allows making an OpenGL 3.0 or later context (or other client API context supporting the ability) current without providing a default framebuffer. The new context creation attributes are also defined to work for OpenGL ES context creation when that makes sense, and the extension has been augmented to allow configs to advertise support for creating OpenGL ES 3.0 contexts.

Requires EGL 1.4.

  • Field Details

    • EGL_CONTEXT_MAJOR_VERSION_KHR

      public static final int EGL_CONTEXT_MAJOR_VERSION_KHR
      See Also:
    • EGL_CONTEXT_MINOR_VERSION_KHR

      public static final int EGL_CONTEXT_MINOR_VERSION_KHR
      See Also:
    • EGL_CONTEXT_FLAGS_KHR

      public static final int EGL_CONTEXT_FLAGS_KHR
      See Also:
    • EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR

      public static final int EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR
      See Also:
    • EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR

      public static final int EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR
      See Also:
    • EGL_NO_RESET_NOTIFICATION_KHR

      public static final int EGL_NO_RESET_NOTIFICATION_KHR
      See Also:
    • EGL_LOSE_CONTEXT_ON_RESET_KHR

      public static final int EGL_LOSE_CONTEXT_ON_RESET_KHR
      See Also:
    • EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR

      public static final int EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR
      See Also:
    • EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR

      public static final int EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR
      See Also:
    • EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR

      public static final int EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR
      See Also:
    • EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR

      public static final int EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR
      See Also:
    • EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR

      public static final int EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR
      See Also:
    • EGL_OPENGL_ES3_BIT

      public static final int EGL_OPENGL_ES3_BIT
      See Also:
    • EGL_OPENGL_ES3_BIT_KHR

      public static final int EGL_OPENGL_ES3_BIT_KHR
      See Also: