Class BGFXTextureInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FORMAT, STORAGESIZE, WIDTH, HEIGHT, DEPTH, NUMLAYERS, NUMMIPS, BITSPERPIXEL, CUBEMAP

        The struct member offsets.
    • Constructor Detail

      • BGFXTextureInfo

        public BGFXTextureInfo​(java.nio.ByteBuffer container)
        Creates a BGFXTextureInfo 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • format

        public int format()
        Returns the value of the format field.
      • storageSize

        public int storageSize()
        Returns the value of the storageSize field.
      • width

        public short width()
        Returns the value of the width field.
      • height

        public short height()
        Returns the value of the height field.
      • depth

        public short depth()
        Returns the value of the depth field.
      • numLayers

        public short numLayers()
        Returns the value of the numLayers field.
      • numMips

        public byte numMips()
        Returns the value of the numMips field.
      • bitsPerPixel

        public byte bitsPerPixel()
        Returns the value of the bitsPerPixel field.
      • cubeMap

        public boolean cubeMap()
        Returns the value of the cubeMap field.
      • createSafe

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

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

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

        public static int nformat​(long struct)
        Unsafe version of format().
      • nstorageSize

        public static int nstorageSize​(long struct)
        Unsafe version of storageSize().
      • nwidth

        public static short nwidth​(long struct)
        Unsafe version of width().
      • nheight

        public static short nheight​(long struct)
        Unsafe version of height().
      • ndepth

        public static short ndepth​(long struct)
        Unsafe version of depth().
      • nnumLayers

        public static short nnumLayers​(long struct)
        Unsafe version of numLayers().
      • nnumMips

        public static byte nnumMips​(long struct)
        Unsafe version of numMips().
      • nbitsPerPixel

        public static byte nbitsPerPixel​(long struct)
        Unsafe version of bitsPerPixel().
      • ncubeMap

        public static boolean ncubeMap​(long struct)
        Unsafe version of cubeMap().