Class TextureData

    • Constructor Detail

      • TextureData

        public TextureData()
    • Method Detail

      • generateKey

        public void generateKey​(String key,
                                boolean genMipmap,
                                int filtering)
        Generating key to acces texture in asset database
        Parameters:
        key - Name of the key to generate (If key exist, this method returns)
        genMipmap - Generate mipmap
        filtering - Filtering
      • getWidth

        public Integer getWidth()
        Returns:
        Texture width in pixels
      • getHeight

        public Integer getHeight()
        Returns:
        Texture height in pixels
      • getData

        public ByteBuffer getData()
        Returns:
        Texture data
      • getKey

        public String getKey()
        Returns:
        Texture key in asset database or null, if no loaded