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 int
count
static TextureCombiner
instance
-
Constructor Summary
Constructors Constructor Description TextureCombiner()
-
Method Summary
Modifier and Type Method Description void
clear()
Texture
combine(java.util.ArrayList arrayList)
Texture
combine(Texture texture, Texture texture2)
void
combineEnd()
void
combineStart()
static int[]
flipPixels(int[] intArray, int int1, int int2)
static int
getResultingHeight(java.util.ArrayList arrayList)
static int
getResultingWidth(java.util.ArrayList arrayList)
void
init()
void
overlay(Texture texture)
void
releaseTexture(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.Exception
OpenGLException
-
getResultingHeight
public static int getResultingHeight(java.util.ArrayList arrayList) -
getResultingWidth
public static int getResultingWidth(java.util.ArrayList arrayList)
-