Class TextureAnimationCache


  • public class TextureAnimationCache
    extends java.lang.Object
    Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Field Detail

      • width

        public final int width
      • height

        public final int height
      • mipLevels

        public final int mipLevels
    • Constructor Detail

      • TextureAnimationCache

        public TextureAnimationCache​(int width,
                                     int height,
                                     int mipLevels)
    • Method Detail

      • initialize

        public void initialize​(java.util.List<int[][]> frames,
                               boolean enableInterpolation)
      • free

        public void free()
      • copyFrameLevelsToTex2D

        public void copyFrameLevelsToTex2D​(int animationFrame,
                                           int dx,
                                           int dy,
                                           int w,
                                           int h)
      • copyFrameLevelsToTex2D

        public void copyFrameLevelsToTex2D​(int animationFrame,
                                           int levels,
                                           int dx,
                                           int dy,
                                           int w,
                                           int h)
      • copyFrameToTex2D

        public void copyFrameToTex2D​(int animationFrame,
                                     int level,
                                     int dx,
                                     int dy,
                                     int w,
                                     int h)
      • copyInterpolatedFrameLevelsToTex2D

        public void copyInterpolatedFrameLevelsToTex2D​(int animationFrameFrom,
                                                       int animationFrameTo,
                                                       float factor,
                                                       int dx,
                                                       int dy,
                                                       int w,
                                                       int h)
      • copyInterpolatedFrameLevelsToTex2D

        public void copyInterpolatedFrameLevelsToTex2D​(int animationFrameFrom,
                                                       int animationFrameTo,
                                                       float factor,
                                                       int levels,
                                                       int dx,
                                                       int dy,
                                                       int w,
                                                       int h)
      • copyInterpolatedFrameToTex2D

        public void copyInterpolatedFrameToTex2D​(int animationFrameFrom,
                                                 int animationFrameTo,
                                                 float factor,
                                                 int level,
                                                 int dx,
                                                 int dy,
                                                 int w,
                                                 int h)
      • getFrameCount

        public int getFrameCount()