Package zombie.core.textures
Class TextureCombiner
java.lang.Object
zombie.core.textures.TextureCombiner
public final class TextureCombiner
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static intcountstatic TextureCombinerinstance -
Constructor Summary
Constructors Constructor Description TextureCombiner() -
Method Summary
Modifier and Type Method Description voidclear()Texturecombine(java.util.ArrayList arrayList)Texturecombine(Texture texture, Texture texture2)voidcombineEnd()voidcombineStart()static int[]flipPixels(int[] intArray, int int1, int int2)static intgetResultingHeight(java.util.ArrayList arrayList)static intgetResultingWidth(java.util.ArrayList arrayList)voidinit()voidoverlay(Texture texture)voidreleaseTexture(Texture texture)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
count
public static int count
-
-
Constructor Details
-
TextureCombiner
public TextureCombiner()
-
-
Method Details
-
init
public void init() throws java.lang.Exception- Throws:
java.lang.Exception
-
combineStart
public void combineStart() -
combineEnd
public void combineEnd() -
clear
public void clear() -
overlay
-
combine
- Throws:
java.lang.Exception
-
flipPixels
public static int[] flipPixels(int[] intArray, int int1, int int2) -
releaseTexture
-
combine
- Throws:
java.lang.ExceptionOpenGLException
-
getResultingHeight
public static int getResultingHeight(java.util.ArrayList arrayList) -
getResultingWidth
public static int getResultingWidth(java.util.ArrayList arrayList)
-