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