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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aAITextureinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AITexturecreate(long address) Returns a newAITextureinstance for the specified memory address.static AITexture.Buffercreate(long address, int capacity) Create aAITexture.Bufferinstance at the specified memory.static @Nullable AITexturecreateSafe(long address) static @Nullable AITexture.BuffercreateSafe(long address, int capacity) intmHeight()intmWidth()static ByteBuffernachFormatHint(long struct) Unsafe version ofachFormatHint().static StringnachFormatHintString(long struct) Unsafe version ofachFormatHintString().static AIStringnmFilename(long struct) Unsafe version ofmFilename().static intnmHeight(long struct) Unsafe version ofmHeight().static intnmWidth(long struct) Unsafe version ofmWidth().static AITexel.BuffernpcData(long struct) Unsafe version ofpcData().static ByteBuffernpcDataCompressed(long struct) Unsafe version ofpcDataCompressed().pcData()Returns achar *view of the array pointed to by thepcDatafield.intsizeof()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 aAITextureinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
mWidth
public int mWidth()- Returns:
- the value of the
mWidthfield.
-
mHeight
public int mHeight()- Returns:
- the value of the
mHeightfield.
-
achFormatHint
- Returns:
- a
ByteBufferview of theachFormatHintfield.
-
achFormatHintString
- Returns:
- the null-terminated string stored in the
achFormatHintfield.
-
pcData
- Returns:
- a
AITexel.Bufferview of the struct array pointed to by thepcDatafield.
-
mFilename
- Returns:
- a
AIStringview of themFilenamefield.
-
create
Returns a newAITextureinstance for the specified memory address. -
createSafe
-
create
Create aAITexture.Bufferinstance 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 thepcDatafield. -
npcDataCompressed
Unsafe version ofpcDataCompressed().
-