Package org.lwjgl.assimp
Class AITexel
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AITexel
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class AITexel extends org.lwjgl.system.Struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AITexel.Buffer
An array ofAITexel
structs.
-
Constructor Summary
Constructors Constructor Description AITexel(java.nio.ByteBuffer container)
Creates aAITexel
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
a()
The alpha color componentbyte
b()
The blue color componentstatic AITexel
create(long address)
Returns a newAITexel
instance for the specified memory address.static AITexel.Buffer
create(long address, int capacity)
Create aAITexel.Buffer
instance at the specified memory.static AITexel
createSafe(long address)
static AITexel.Buffer
createSafe(long address, int capacity)
byte
g()
The green color componentstatic byte
na(long struct)
Unsafe version ofa()
.static byte
nb(long struct)
Unsafe version ofb()
.static byte
ng(long struct)
Unsafe version ofg()
.static byte
nr(long struct)
Unsafe version ofr()
.byte
r()
The red color componentint
sizeof()
-
-
-
Constructor Detail
-
AITexel
public AITexel(java.nio.ByteBuffer container)
Creates aAITexel
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
-
b
public byte b()
The blue color component
-
g
public byte g()
The green color component
-
r
public byte r()
The red color component
-
a
public byte a()
The alpha color component
-
create
public static AITexel create(long address)
Returns a newAITexel
instance for the specified memory address.
-
createSafe
@Nullable public static AITexel createSafe(long address)
-
create
public static AITexel.Buffer create(long address, int capacity)
Create aAITexel.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AITexel.Buffer createSafe(long address, int capacity)
-
nb
public static byte nb(long struct)
Unsafe version ofb()
.
-
ng
public static byte ng(long struct)
Unsafe version ofg()
.
-
nr
public static byte nr(long struct)
Unsafe version ofr()
.
-
na
public static byte na(long struct)
Unsafe version ofa()
.
-
-