Package org.lwjgl.ovr

Class OVRGraphicsLuid

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

    public class OVRGraphicsLuid
    extends Struct
    implements NativeResource
    Identifies a graphics device in a platform-specific way.

    For Windows this is a LUID type.

    Member documentation

    • Reserved[8] – public definition reserves space for graphics API-specific implementation.

    Layout

    
     struct ovrGraphicsLuid {
         char Reserved[8];
     }
    • Field Detail

      • SIZEOF

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

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

        public static final int RESERVED
        The struct member offsets.
    • Constructor Detail

      • OVRGraphicsLuid

        public OVRGraphicsLuid​(java.nio.ByteBuffer container)
        Creates a OVRGraphicsLuid 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • Reserved

        public java.nio.ByteBuffer Reserved()
        Returns a ByteBuffer view of the Reserved field.
      • Reserved

        public byte Reserved​(int index)
        Returns the value at the specified index of the Reserved field.
      • malloc

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

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

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

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

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

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

        public static OVRGraphicsLuid mallocStack()
        Returns a new OVRGraphicsLuid instance allocated on the thread-local MemoryStack.
      • callocStack

        public static OVRGraphicsLuid callocStack()
        Returns a new OVRGraphicsLuid instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static OVRGraphicsLuid mallocStack​(MemoryStack stack)
        Returns a new OVRGraphicsLuid instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static OVRGraphicsLuid callocStack​(MemoryStack stack)
        Returns a new OVRGraphicsLuid instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nReserved

        public static java.nio.ByteBuffer nReserved​(long struct)
        Unsafe version of Reserved().
      • nReserved

        public static byte nReserved​(long struct,
                                     int index)
        Unsafe version of Reserved.