Class XrGraphicsBindingEGLMNDX

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrGraphicsBindingEGLMNDX extends Struct<XrGraphicsBindingEGLMNDX> implements NativeResource

 struct XrGraphicsBindingEGLMNDX {
     XrStructureType type;
     void const * next;
     PFN_xrEglGetProcAddressMNDX getProcAddress;
     EGLDisplay display;
     EGLConfig config;
     EGLContext context;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • GETPROCADDRESS

      public static final int GETPROCADDRESS
      The struct member offsets.
    • DISPLAY

      public static final int DISPLAY
      The struct member offsets.
    • CONFIG

      public static final int CONFIG
      The struct member offsets.
    • CONTEXT

      public static final int CONTEXT
      The struct member offsets.
  • Constructor Details

    • XrGraphicsBindingEGLMNDX

      public XrGraphicsBindingEGLMNDX(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrGraphicsBindingEGLMNDX>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • getProcAddress

      public long getProcAddress()
      Returns:
      the value of the getProcAddress field.
    • display

      public long display()
      Returns:
      the value of the display field.
    • config

      public long config()
      Returns:
      the value of the config field.
    • context

      public long context()
      Returns:
      the value of the context field.
    • type

      public XrGraphicsBindingEGLMNDX type(int value)
      Sets the specified value to the type field.
    • type$Default

      public XrGraphicsBindingEGLMNDX type$Default()
      Sets the TYPE_GRAPHICS_BINDING_EGL_MNDX value to the type field.
    • next

      public XrGraphicsBindingEGLMNDX next(long value)
      Sets the specified value to the next field.
    • getProcAddress

      public XrGraphicsBindingEGLMNDX getProcAddress(long value)
      Sets the specified value to the getProcAddress field.
    • display

      public XrGraphicsBindingEGLMNDX display(long value)
      Sets the specified value to the display field.
    • config

      public XrGraphicsBindingEGLMNDX config(long value)
      Sets the specified value to the config field.
    • context

      public XrGraphicsBindingEGLMNDX context(long value)
      Sets the specified value to the context field.
    • set

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

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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.
    • createSafe

      public static @Nullable XrGraphicsBindingEGLMNDX createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrGraphicsBindingEGLMNDX.Buffer malloc(int capacity)
      Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity)
      Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrGraphicsBindingEGLMNDX.Buffer create(int capacity)
      Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrGraphicsBindingEGLMNDX.Buffer create(long address, int capacity)
      Create a XrGraphicsBindingEGLMNDX.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrGraphicsBindingEGLMNDX.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrGraphicsBindingEGLMNDX malloc(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(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
    • malloc

      public static XrGraphicsBindingEGLMNDX.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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