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.StructHelper structure to represent a texel in a ARGB8888 format. Used by aiTexture.Member documentation
b– The blue color componentg– The green color componentr– The red color componenta– The alpha color component
Layout
struct aiTexel { unsigned char b; unsigned char g; unsigned char r; unsigned char a; }
-
-
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()Returns the value of theafield.byteb()Returns the value of thebfield.static 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()Returns the value of thegfield.static 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()Returns the value of therfield.intsizeof()
-
-
-
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()
Returns the value of thebfield.
-
g
public byte g()
Returns the value of thegfield.
-
r
public byte r()
Returns the value of therfield.
-
a
public byte a()
Returns the value of theafield.
-
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().
-
-