Class TextureAnimationCache
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.minecraft.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 Summary
Fields Modifier and Type Field Description static int
_GL_COLOR_ATTACHMENT0
static int
_GL_FRAMEBUFFER
static int
_GL_RENDERBUFFER
int
height
int
mipLevels
int
width
-
Constructor Summary
Constructors Constructor Description TextureAnimationCache(int width, int height, int mipLevels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFrameLevelsToTex2D(int animationFrame, int dx, int dy, int w, int h)
void
copyFrameLevelsToTex2D(int animationFrame, int levels, int dx, int dy, int w, int h)
void
copyFrameToTex2D(int animationFrame, int level, int dx, int dy, int w, int h)
void
copyInterpolatedFrameLevelsToTex2D(int animationFrameFrom, int animationFrameTo, float factor, int dx, int dy, int w, int h)
void
copyInterpolatedFrameLevelsToTex2D(int animationFrameFrom, int animationFrameTo, float factor, int levels, int dx, int dy, int w, int h)
void
copyInterpolatedFrameToTex2D(int animationFrameFrom, int animationFrameTo, float factor, int level, int dx, int dy, int w, int h)
void
free()
int
getFrameCount()
void
initialize(java.util.List<int[][]> frames, boolean enableInterpolation)
-
-
-
Field Detail
-
_GL_FRAMEBUFFER
public static final int _GL_FRAMEBUFFER
- See Also:
- Constant Field Values
-
_GL_RENDERBUFFER
public static final int _GL_RENDERBUFFER
- See Also:
- Constant Field Values
-
_GL_COLOR_ATTACHMENT0
public static final int _GL_COLOR_ATTACHMENT0
- See Also:
- Constant Field Values
-
width
public final int width
-
height
public final int height
-
mipLevels
public final 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()
-
-