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 classAITexel.BufferAn array ofAITexelstructs.
-
Constructor Summary
Constructors Constructor Description AITexel(java.nio.ByteBuffer container)Creates aAITexelinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytea()The alpha color componentbyteb()The blue color componentstatic AITexelcreate(long address)Returns a newAITexelinstance for the specified memory address.static AITexel.Buffercreate(long address, int capacity)Create aAITexel.Bufferinstance at the specified memory.static AITexelcreateSafe(long address)static AITexel.BuffercreateSafe(long address, int capacity)byteg()The green color componentstatic bytena(long struct)Unsafe version ofa().static bytenb(long struct)Unsafe version ofb().static byteng(long struct)Unsafe version ofg().static bytenr(long struct)Unsafe version ofr().byter()The red color componentintsizeof()
-
-
-
Constructor Detail
-
AITexel
public AITexel(java.nio.ByteBuffer container)
Creates aAITexelinstance 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
-
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 newAITexelinstance 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.Bufferinstance 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().
-
-