Package org.lwjgl.ovr

Class OVRExtensionProperties

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class OVRExtensionProperties
    extends org.lwjgl.system.Struct
    Describes the properties of an API extension.

    Layout

    
     struct ovrExtensionProperties {
         int extensionId();
         char extensionName[OVR_MAX_EXTENSION_NAME_SIZE];
         uint32_t extensionVersion();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • EXTENSIONID, EXTENSIONNAME, EXTENSIONVERSION

        The struct member offsets.
    • Constructor Detail

      • OVRExtensionProperties

        public OVRExtensionProperties​(java.nio.ByteBuffer container)
        Creates a OVRExtensionProperties 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
      • extensionId

        public int extensionId()
        One of enum ovrExtensions or a dynamic value.
      • extensionName

        public java.nio.ByteBuffer extensionName()
        Returns:
        a ByteBuffer view of the extensionName field.
      • extensionNameString

        public java.lang.String extensionNameString()
        Returns:
        the null-terminated string stored in the extensionName field.
      • extensionVersion

        public int extensionVersion()
        OpenXR-like version. Version compatibility is identified by the extension documentation.
      • create

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

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

        public static int nextensionId​(long struct)
        Unsafe version of extensionId().
      • nextensionName

        public static java.nio.ByteBuffer nextensionName​(long struct)
        Unsafe version of extensionName().
      • nextensionNameString

        public static java.lang.String nextensionNameString​(long struct)
        Unsafe version of extensionNameString().
      • nextensionVersion

        public static int nextensionVersion​(long struct)
        Unsafe version of extensionVersion().