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
Helper 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 and Description static class
AITexel.Buffer
An array ofAITexel
structs.
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description byte
a()
Returns the value of thea
field.byte
b()
Returns the value of theb
field.static 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()
Returns the value of theg
field.byte
r()
Returns the value of ther
field.int
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()
Returns the value of theb
field.
-
g
public byte g()
Returns the value of theg
field.
-
r
public byte r()
Returns the value of ther
field.
-
a
public byte a()
Returns the value of thea
field.
-
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)
-
-