public class CXVersion
extends org.lwjgl.system.Struct
major.minor.subminor.
Major – the major version number, e.g., the '10' in '10.7.3'. A negative value indicates that there is no version number at all.Minor – the minor version number, e.g., the '7' in '10.7.3'. This value will be negative if no minor version number was provided, e.g., for version '10'.Subminor –
the subminor version number, e.g., the '3' in '10.7.3'. This value will be negative if no minor or subminor version number was provided, e.g., in
version '10' or '10.7'.
struct CXVersion {
int Major;
int Minor;
int Subminor;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXVersion.Buffer
An array of
CXVersion structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAJOR
The struct member offsets.
|
static int |
MINOR
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SUBMINOR
The struct member offsets.
|
| Constructor and Description |
|---|
CXVersion(java.nio.ByteBuffer container)
Creates a
CXVersion instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXVersion |
create(long address)
Returns a new
CXVersion instance for the specified memory address. |
static CXVersion.Buffer |
create(long address,
int capacity)
Create a
CXVersion.Buffer instance at the specified memory. |
static CXVersion |
createSafe(long address)
|
static CXVersion.Buffer |
createSafe(long address,
int capacity)
|
int |
Major()
Returns the value of the
Major field. |
int |
Minor()
Returns the value of the
Minor field. |
static int |
nMajor(long struct)
Unsafe version of
Major(). |
static int |
nMinor(long struct)
Unsafe version of
Minor(). |
static int |
nSubminor(long struct)
Unsafe version of
Subminor(). |
int |
sizeof() |
int |
Subminor()
Returns the value of the
Subminor field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MAJOR
public static final int MINOR
public static final int SUBMINOR
public CXVersion(java.nio.ByteBuffer container)
CXVersion 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int Major()
Major field.public int Minor()
Minor field.public int Subminor()
Subminor field.public static CXVersion create(long address)
CXVersion instance for the specified memory address.@Nullable public static CXVersion createSafe(long address)
public static CXVersion.Buffer create(long address, int capacity)
CXVersion.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXVersion.Buffer createSafe(long address, int capacity)
public static int nMajor(long struct)
Major().public static int nMinor(long struct)
Minor().public static int nSubminor(long struct)
Subminor().Copyright LWJGL. All Rights Reserved. License terms.