Package org.lwjgl.assimp
Class AIColor3D
- All Implemented Interfaces:
Pointer
struct aiColor3D {
float r;
float g;
float b;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAIColor3D
(ByteBuffer container) Creates aAIColor3D
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionfloat
b()
static AIColor3D
create
(long address) Returns a newAIColor3D
instance for the specified memory address.static AIColor3D.Buffer
create
(long address, int capacity) Create aAIColor3D.Buffer
instance at the specified memory.static @Nullable AIColor3D
createSafe
(long address) static @Nullable AIColor3D.Buffer
createSafe
(long address, int capacity) float
g()
static float
nb
(long struct) Unsafe version ofb()
.static float
ng
(long struct) Unsafe version ofg()
.static float
nr
(long struct) Unsafe version ofr()
.float
r()
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
R
public static final int RThe struct member offsets. -
G
public static final int GThe struct member offsets. -
B
public static final int BThe struct member offsets.
-
-
Constructor Details
-
AIColor3D
Creates aAIColor3D
instance at the current position of the specifiedByteBuffer
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()Description copied from class:Struct
Returnssizeof(struct)
. -
r
public float r()- Returns:
- the value of the
r
field.
-
g
public float g()- Returns:
- the value of the
g
field.
-
b
public float b()- Returns:
- the value of the
b
field.
-
create
Returns a newAIColor3D
instance for the specified memory address. -
createSafe
-
create
Create aAIColor3D.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nr
public static float nr(long struct) Unsafe version ofr()
. -
ng
public static float ng(long struct) Unsafe version ofg()
. -
nb
public static float nb(long struct) Unsafe version ofb()
.
-