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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aAIColor3Dinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionfloatb()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 @Nullable AIColor3DcreateSafe(long address) static @Nullable AIColor3D.BuffercreateSafe(long address, int capacity) floatg()static floatnb(long struct) Unsafe version ofb().static floatng(long struct) Unsafe version ofg().static floatnr(long struct) Unsafe version ofr().floatr()intsizeof()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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
r
public float r()- Returns:
- the value of the
rfield.
-
g
public float g()- Returns:
- the value of the
gfield.
-
b
public float b()- Returns:
- the value of the
bfield.
-
create
Returns a newAIColor3Dinstance for the specified memory address. -
createSafe
-
create
Create aAIColor3D.Bufferinstance 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().
-