Package org.lwjgl.assimp
Class AIColor3D
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIColor3D
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class AIColor3D extends org.lwjgl.system.Struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIColor3D.Buffer
An array ofAIColor3D
structs.
-
Constructor Summary
Constructors Constructor Description AIColor3D(java.nio.ByteBuffer container)
Creates aAIColor3D
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
b()
The blue color valuestatic 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 AIColor3D
createSafe(long address)
static AIColor3D.Buffer
createSafe(long address, int capacity)
float
g()
The green color valuestatic 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()
The red color valueint
sizeof()
-
-
-
Constructor Detail
-
AIColor3D
public AIColor3D(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
r
public float r()
The red color value
-
g
public float g()
The green color value
-
b
public float b()
The blue color value
-
create
public static AIColor3D create(long address)
Returns a newAIColor3D
instance for the specified memory address.
-
createSafe
@Nullable public static AIColor3D createSafe(long address)
-
create
public static AIColor3D.Buffer create(long address, int capacity)
Create aAIColor3D.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AIColor3D.Buffer createSafe(long address, int capacity)
-
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()
.
-
-