Class AITexture

All Implemented Interfaces:
Pointer

@NativeType("struct aiTexture") public class AITexture extends Struct<AITexture>
struct aiTexture {
    unsigned int mWidth;
    unsigned int mHeight;
    char achFormatHint[9];
    struct aiTexel * pcData;
    struct aiString mFilename;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MWIDTH

      public static final int MWIDTH
      The struct member offsets.
    • MHEIGHT

      public static final int MHEIGHT
      The struct member offsets.
    • ACHFORMATHINT

      public static final int ACHFORMATHINT
      The struct member offsets.
    • PCDATA

      public static final int PCDATA
      The struct member offsets.
    • MFILENAME

      public static final int MFILENAME
      The struct member offsets.
  • Constructor Details

    • AITexture

      public AITexture(ByteBuffer container)
      Creates a AITexture instance at the current position of the specified ByteBuffer 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
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<AITexture>
    • mWidth

      @NativeType("unsigned int") public int mWidth()
      Returns:
      the value of the mWidth field.
    • mHeight

      @NativeType("unsigned int") public int mHeight()
      Returns:
      the value of the mHeight field.
    • achFormatHint

      @NativeType("char[9]") public ByteBuffer achFormatHint()
      Returns:
      a ByteBuffer view of the achFormatHint field.
    • achFormatHintString

      @NativeType("char[9]") public String achFormatHintString()
      Returns:
      the null-terminated string stored in the achFormatHint field.
    • pcData

      @NativeType("struct aiTexel *") public AITexel.Buffer pcData()
      Returns:
      a AITexel.Buffer view of the struct array pointed to by the pcData field.
    • mFilename

      @NativeType("struct aiString") public AIString mFilename()
      Returns:
      a AIString view of the mFilename field.
    • create

      public static AITexture create(long address)
      Returns a new AITexture instance for the specified memory address.
    • createSafe

      public static @Nullable AITexture createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static AITexture.Buffer create(long address, int capacity)
      Create a AITexture.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable AITexture.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nmWidth

      public static int nmWidth(long struct)
      Unsafe version of mWidth().
    • nmHeight

      public static int nmHeight(long struct)
      Unsafe version of mHeight().
    • nachFormatHint

      public static ByteBuffer nachFormatHint(long struct)
      Unsafe version of achFormatHint().
    • nachFormatHintString

      public static String nachFormatHintString(long struct)
      Unsafe version of achFormatHintString().
    • npcData

      public static AITexel.Buffer npcData(long struct)
      Unsafe version of pcData().
    • nmFilename

      public static AIString nmFilename(long struct)
      Unsafe version of mFilename().
    • pcDataCompressed

      @NativeType("char *") public ByteBuffer pcDataCompressed()
      Returns a char * view of the array pointed to by the pcData field.
    • npcDataCompressed

      public static ByteBuffer npcDataCompressed(long struct)
      Unsafe version of pcDataCompressed().