public class AIColor3D
extends org.lwjgl.system.Struct
r – The red color valueg – The green color valueb – The blue color value
struct aiColor3D {
float r;
float g;
float b;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIColor3D.Buffer
An array of
AIColor3D structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
B
The struct member offsets.
|
static int |
G
The struct member offsets.
|
static int |
R
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIColor3D(java.nio.ByteBuffer container)
Creates a
AIColor3D instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
float |
b()
Returns the value of the
b field. |
static AIColor3D |
create(long address)
Returns a new
AIColor3D instance for the specified memory address. |
static AIColor3D.Buffer |
create(long address,
int capacity)
Create a
AIColor3D.Buffer instance at the specified memory. |
static AIColor3D |
createSafe(long address)
|
static AIColor3D.Buffer |
createSafe(long address,
int capacity)
|
float |
g()
Returns the value of the
g field. |
static float |
nb(long struct)
Unsafe version of
b(). |
static float |
ng(long struct)
Unsafe version of
g(). |
static float |
nr(long struct)
Unsafe version of
r(). |
float |
r()
Returns the value of the
r field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int R
public static final int G
public static final int B
public AIColor3D(java.nio.ByteBuffer container)
AIColor3D 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 float r()
r field.public float g()
g field.public float b()
b field.public static AIColor3D create(long address)
AIColor3D instance for the specified memory address.@Nullable public static AIColor3D createSafe(long address)
public static AIColor3D.Buffer create(long address, int capacity)
AIColor3D.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIColor3D.Buffer createSafe(long address, int capacity)
public static float nr(long struct)
r().public static float ng(long struct)
g().public static float nb(long struct)
b().Copyright LWJGL. All Rights Reserved. License terms.