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.StructRepresents 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 Description static classAIColor3D.BufferAn array ofAIColor3Dstructs.
-
Constructor Summary
Constructors Constructor Description AIColor3D(java.nio.ByteBuffer container)Creates aAIColor3Dinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatb()Returns the value of thebfield.static AIColor3Dcreate(long address)Returns a newAIColor3Dinstance for the specified memory address.static AIColor3D.Buffercreate(long address, int capacity)Create aAIColor3D.Bufferinstance at the specified memory.static AIColor3DcreateSafe(long address)static AIColor3D.BuffercreateSafe(long address, int capacity)floatg()Returns the value of thegfield.static floatnb(long struct)Unsafe version ofb().static floatng(long struct)Unsafe version ofg().static floatnr(long struct)Unsafe version ofr().floatr()Returns the value of therfield.intsizeof()
-
-
-
Constructor Detail
-
AIColor3D
public AIColor3D(java.nio.ByteBuffer container)
Creates aAIColor3Dinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
r
public float r()
Returns the value of therfield.
-
g
public float g()
Returns the value of thegfield.
-
b
public float b()
Returns the value of thebfield.
-
create
public static AIColor3D create(long address)
Returns a newAIColor3Dinstance 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.Bufferinstance 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().
-
-