Package org.lwjgl.assimp
Class AITexture
- All Implemented Interfaces:
Pointer
struct aiTexture {
unsigned int mWidth;
unsigned int mHeight;
char achFormatHint[9];
{@link AITexel struct aiTexel} * pcData;
{@link AIString struct aiString} mFilename;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAITexture
(ByteBuffer container) Creates aAITexture
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AITexture
create
(long address) Returns a newAITexture
instance for the specified memory address.static AITexture.Buffer
create
(long address, int capacity) Create aAITexture.Buffer
instance at the specified memory.static @Nullable AITexture
createSafe
(long address) static @Nullable AITexture.Buffer
createSafe
(long address, int capacity) int
mHeight()
int
mWidth()
static ByteBuffer
nachFormatHint
(long struct) Unsafe version ofachFormatHint()
.static String
nachFormatHintString
(long struct) Unsafe version ofachFormatHintString()
.static AIString
nmFilename
(long struct) Unsafe version ofmFilename()
.static int
nmHeight
(long struct) Unsafe version ofmHeight()
.static int
nmWidth
(long struct) Unsafe version ofmWidth()
.static AITexel.Buffer
npcData
(long struct) Unsafe version ofpcData()
.static ByteBuffer
npcDataCompressed
(long struct) Unsafe version ofpcDataCompressed()
.pcData()
Returns achar *
view of the array pointed to by thepcData
field.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MWIDTH
public static final int MWIDTHThe struct member offsets. -
MHEIGHT
public static final int MHEIGHTThe struct member offsets. -
ACHFORMATHINT
public static final int ACHFORMATHINTThe struct member offsets. -
PCDATA
public static final int PCDATAThe struct member offsets. -
MFILENAME
public static final int MFILENAMEThe struct member offsets.
-
-
Constructor Details
-
AITexture
Creates aAITexture
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
mWidth
public int mWidth()- Returns:
- the value of the
mWidth
field.
-
mHeight
public int mHeight()- Returns:
- the value of the
mHeight
field.
-
achFormatHint
- Returns:
- a
ByteBuffer
view of theachFormatHint
field.
-
achFormatHintString
- Returns:
- the null-terminated string stored in the
achFormatHint
field.
-
pcData
- Returns:
- a
AITexel.Buffer
view of the struct array pointed to by thepcData
field.
-
mFilename
- Returns:
- a
AIString
view of themFilename
field.
-
create
Returns a newAITexture
instance for the specified memory address. -
createSafe
-
create
Create aAITexture.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nmWidth
public static int nmWidth(long struct) Unsafe version ofmWidth()
. -
nmHeight
public static int nmHeight(long struct) Unsafe version ofmHeight()
. -
nachFormatHint
Unsafe version ofachFormatHint()
. -
nachFormatHintString
Unsafe version ofachFormatHintString()
. -
npcData
Unsafe version ofpcData()
. -
nmFilename
Unsafe version ofmFilename()
. -
pcDataCompressed
Returns achar *
view of the array pointed to by thepcData
field. -
npcDataCompressed
Unsafe version ofpcDataCompressed()
.
-