Class XrGraphicsBindingEGLMNDX

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class XrGraphicsBindingEGLMNDX
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    The graphics binding structure to be passed at session creation to EGL.
    Description

    When creating an EGL based XrSession, the application will provide a pointer to an XrGraphicsBindingEGLMNDX structure in the next chain of the XrSessionCreateInfo.

    The required window system configuration define to expose this structure type is USE_PLATFORM_EGL.

    Valid Usage (Implicit)
    See Also

    CreateSession

    Layout

    
     struct XrGraphicsBindingEGLMNDX {
         XrStructureType type();
         void const * next();
         PFNEGLGETPROCADDRESSPROC getProcAddress();
         EGLDisplay display();
         EGLConfig config();
         EGLContext context();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, GETPROCADDRESS, DISPLAY, CONFIG, CONTEXT

        The struct member offsets.
    • Constructor Detail

      • XrGraphicsBindingEGLMNDX

        public XrGraphicsBindingEGLMNDX​(java.nio.ByteBuffer container)
        Creates a XrGraphicsBindingEGLMNDX instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • type

        public int type()
        the XrStructureType of this structure.
      • next

        public long next()
        NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
      • getProcAddress

        public long getProcAddress()
        a valid function pointer to eglGetProcAddress.
      • display

        public long display()
        a valid EGL EGLDisplay.
      • config

        public long config()
        a valid EGL EGLConfig.
      • context

        public long context()
        a valid EGL EGLContext.
      • set

        public XrGraphicsBindingEGLMNDX set​(int type,
                                            long next,
                                            long getProcAddress,
                                            long display,
                                            long config,
                                            long context)
        Initializes this struct with the specified values.
      • malloc

        public static XrGraphicsBindingEGLMNDX malloc()
        Returns a new XrGraphicsBindingEGLMNDX instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static XrGraphicsBindingEGLMNDX calloc()
        Returns a new XrGraphicsBindingEGLMNDX instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static XrGraphicsBindingEGLMNDX create()
        Returns a new XrGraphicsBindingEGLMNDX instance allocated with BufferUtils.
      • create

        public static XrGraphicsBindingEGLMNDX create​(long address)
        Returns a new XrGraphicsBindingEGLMNDX instance for the specified memory address.
      • malloc

        public static XrGraphicsBindingEGLMNDX malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrGraphicsBindingEGLMNDX instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrGraphicsBindingEGLMNDX calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrGraphicsBindingEGLMNDX instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrGraphicsBindingEGLMNDX.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ntype

        public static int ntype​(long struct)
        Unsafe version of type().
      • nnext

        public static long nnext​(long struct)
        Unsafe version of next().
      • ngetProcAddress

        public static long ngetProcAddress​(long struct)
        Unsafe version of getProcAddress().
      • ndisplay

        public static long ndisplay​(long struct)
        Unsafe version of display().
      • nconfig

        public static long nconfig​(long struct)
        Unsafe version of config().
      • ncontext

        public static long ncontext​(long struct)
        Unsafe version of context().
      • ntype

        public static void ntype​(long struct,
                                 int value)
        Unsafe version of type.
      • nnext

        public static void nnext​(long struct,
                                 long value)
        Unsafe version of next.
      • ngetProcAddress

        public static void ngetProcAddress​(long struct,
                                           long value)
        Unsafe version of getProcAddress.
      • ndisplay

        public static void ndisplay​(long struct,
                                    long value)
        Unsafe version of display.
      • nconfig

        public static void nconfig​(long struct,
                                   long value)
        Unsafe version of config.
      • ncontext

        public static void ncontext​(long struct,
                                    long value)
        Unsafe version of context.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate