Package org.lwjgl.ovr
Class OVRExtensionProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRExtensionProperties
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class OVRExtensionProperties extends org.lwjgl.system.StructDescribes the properties of an API extension.Layout
struct ovrExtensionProperties { intextensionId(); char extensionName[OVR_MAX_EXTENSION_NAME_SIZE]; uint32_textensionVersion(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRExtensionProperties.BufferAn array ofOVRExtensionPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXTENSIONID
EXTENSIONNAME
EXTENSIONVERSIONThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRExtensionProperties(java.nio.ByteBuffer container)Creates aOVRExtensionPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRExtensionPropertiescreate(long address)Returns a newOVRExtensionPropertiesinstance for the specified memory address.static OVRExtensionProperties.Buffercreate(long address, int capacity)Create aOVRExtensionProperties.Bufferinstance at the specified memory.static OVRExtensionPropertiescreateSafe(long address)static OVRExtensionProperties.BuffercreateSafe(long address, int capacity)intextensionId()One of enumovrExtensionsor a dynamic value.java.nio.ByteBufferextensionName()java.lang.StringextensionNameString()intextensionVersion()OpenXR-like version.static intnextensionId(long struct)Unsafe version ofextensionId().static java.nio.ByteBuffernextensionName(long struct)Unsafe version ofextensionName().static java.lang.StringnextensionNameString(long struct)Unsafe version ofextensionNameString().static intnextensionVersion(long struct)Unsafe version ofextensionVersion().intsizeof()
-
-
-
Constructor Detail
-
OVRExtensionProperties
public OVRExtensionProperties(java.nio.ByteBuffer container)
Creates aOVRExtensionPropertiesinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
extensionId
public int extensionId()
One of enumovrExtensionsor a dynamic value.
-
extensionName
public java.nio.ByteBuffer extensionName()
- Returns:
- a
ByteBufferview of theextensionNamefield.
-
extensionNameString
public java.lang.String extensionNameString()
- Returns:
- the null-terminated string stored in the
extensionNamefield.
-
extensionVersion
public int extensionVersion()
OpenXR-like version. Version compatibility is identified by the extension documentation.
-
create
public static OVRExtensionProperties create(long address)
Returns a newOVRExtensionPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static OVRExtensionProperties createSafe(long address)
-
create
public static OVRExtensionProperties.Buffer create(long address, int capacity)
Create aOVRExtensionProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRExtensionProperties.Buffer createSafe(long address, int capacity)
-
nextensionId
public static int nextensionId(long struct)
Unsafe version ofextensionId().
-
nextensionName
public static java.nio.ByteBuffer nextensionName(long struct)
Unsafe version ofextensionName().
-
nextensionNameString
public static java.lang.String nextensionNameString(long struct)
Unsafe version ofextensionNameString().
-
nextensionVersion
public static int nextensionVersion(long struct)
Unsafe version ofextensionVersion().
-
-