Package org.lwjgl.ovr

Class OVRExtensionProperties

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRExtensionProperties>
org.lwjgl.ovr.OVRExtensionProperties
All Implemented Interfaces:
org.lwjgl.system.Pointer

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

Layout


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

    • SIZEOF

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

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

      public static final int EXTENSIONID
      The struct member offsets.
    • EXTENSIONNAME

      public static final int EXTENSIONNAME
      The struct member offsets.
    • EXTENSIONVERSION

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

    • OVRExtensionProperties

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

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<OVRExtensionProperties>
    • extensionId

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

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

      public 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

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

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

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

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

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

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

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