Package org.lwjgl.assimp
Class AIColor4D
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIColor4D
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class AIColor4D extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIColor4D.Buffer
An array ofAIColor4D
structs.
-
Constructor Summary
Constructors Constructor Description AIColor4D(java.nio.ByteBuffer container)
Creates aAIColor4D
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description float
a()
The alpha color componentAIColor4D
a(float value)
Sets the specified value to thea()
field.float
b()
The blue color componentAIColor4D
b(float value)
Sets the specified value to theb()
field.static AIColor4D
calloc()
Returns a newAIColor4D
instance allocated withmemCalloc
.static AIColor4D.Buffer
calloc(int capacity)
Returns a newAIColor4D.Buffer
instance allocated withmemCalloc
.static AIColor4D.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIColor4D.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIColor4D
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIColor4D
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIColor4D
callocStack()
Deprecated.static AIColor4D.Buffer
callocStack(int capacity)
Deprecated.static AIColor4D.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIColor4D
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static AIColor4D
create()
Returns a newAIColor4D
instance allocated withBufferUtils
.static AIColor4D.Buffer
create(int capacity)
Returns a newAIColor4D.Buffer
instance allocated withBufferUtils
.static AIColor4D
create(long address)
Returns a newAIColor4D
instance for the specified memory address.static AIColor4D.Buffer
create(long address, int capacity)
Create aAIColor4D.Buffer
instance at the specified memory.static AIColor4D
createSafe(long address)
static AIColor4D.Buffer
createSafe(long address, int capacity)
float
g()
The green color componentAIColor4D
g(float value)
Sets the specified value to theg()
field.static AIColor4D
malloc()
Returns a newAIColor4D
instance allocated withmemAlloc
.static AIColor4D.Buffer
malloc(int capacity)
Returns a newAIColor4D.Buffer
instance allocated withmemAlloc
.static AIColor4D.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIColor4D.Buffer
instance allocated on the specifiedMemoryStack
.static AIColor4D
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIColor4D
instance allocated on the specifiedMemoryStack
.static AIColor4D
mallocStack()
Deprecated.static AIColor4D.Buffer
mallocStack(int capacity)
Deprecated.static AIColor4D.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIColor4D
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static float
na(long struct)
Unsafe version ofa()
.static void
na(long struct, float value)
Unsafe version ofa
.static float
nb(long struct)
Unsafe version ofb()
.static void
nb(long struct, float value)
Unsafe version ofb
.static float
ng(long struct)
Unsafe version ofg()
.static void
ng(long struct, float value)
Unsafe version ofg
.static float
nr(long struct)
Unsafe version ofr()
.static void
nr(long struct, float value)
Unsafe version ofr
.float
r()
The red color componentAIColor4D
r(float value)
Sets the specified value to ther()
field.AIColor4D
set(float r, float g, float b, float a)
Initializes this struct with the specified values.AIColor4D
set(AIColor4D src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
AIColor4D
public AIColor4D(java.nio.ByteBuffer container)
Creates aAIColor4D
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 component
-
g
public float g()
The green color component
-
b
public float b()
The blue color component
-
a
public float a()
The alpha color component
-
set
public AIColor4D set(float r, float g, float b, float a)
Initializes this struct with the specified values.
-
set
public AIColor4D set(AIColor4D src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static AIColor4D malloc()
Returns a newAIColor4D
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIColor4D calloc()
Returns a newAIColor4D
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIColor4D create()
Returns a newAIColor4D
instance allocated withBufferUtils
.
-
create
public static AIColor4D create(long address)
Returns a newAIColor4D
instance for the specified memory address.
-
createSafe
@Nullable public static AIColor4D createSafe(long address)
-
malloc
public static AIColor4D.Buffer malloc(int capacity)
Returns a newAIColor4D.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIColor4D.Buffer calloc(int capacity)
Returns a newAIColor4D.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIColor4D.Buffer create(int capacity)
Returns a newAIColor4D.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIColor4D.Buffer create(long address, int capacity)
Create aAIColor4D.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AIColor4D.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIColor4D mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static AIColor4D callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIColor4D mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static AIColor4D callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIColor4D.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static AIColor4D.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIColor4D.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static AIColor4D.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static AIColor4D malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIColor4D
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AIColor4D calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIColor4D
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static AIColor4D.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIColor4D.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static AIColor4D.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIColor4D.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer 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()
.
-
na
public static float na(long struct)
Unsafe version ofa()
.
-
nr
public static void nr(long struct, float value)
Unsafe version ofr
.
-
ng
public static void ng(long struct, float value)
Unsafe version ofg
.
-
nb
public static void nb(long struct, float value)
Unsafe version ofb
.
-
na
public static void na(long struct, float value)
Unsafe version ofa
.
-
-