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
Represents a color in Red-Green-Blue space.Member documentation
r
– The red color valueg
– The green color valueb
– The blue color value
Layout
struct aiColor3D { float r; float g; float b; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
AIColor3D.Buffer
An array ofAIColor3D
structs.
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description float
b()
Returns the value of theb
field.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 AIColor3D
createSafe(long address)
static AIColor3D.Buffer
createSafe(long address, int capacity)
float
g()
Returns the value of theg
field.float
r()
Returns the value of ther
field.int
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()
Returns the value of ther
field.
-
g
public float g()
Returns the value of theg
field.
-
b
public float b()
Returns the value of theb
field.
-
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)
-
-