Package zombie.core.textures
Class MultiTextureFBO2
java.lang.Object
zombie.core.textures.MultiTextureFBO2
public class MultiTextureFBO2
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description boolean[]
bAutoZoom
boolean
bZoomEnabled
TextureFBO
Current
TextureFBO
FBOrendered
float[]
startZoom
float[]
targetZoom
float[]
zoom
-
Constructor Summary
Constructors Constructor Description MultiTextureFBO2()
-
Method Summary
Modifier and Type Method Description void
create(int xres, int yres)
void
destroy()
void
doZoomScroll(int playerIndex, int del)
TextureFBO
getCurrent(int nPlayer)
java.util.ArrayList
getDefaultZoomLevels()
int
getHeight(int playerIndex)
float
getMaxZoom()
float
getMinZoom()
float
getNextZoom(int playerIndex, int del)
Texture
getTexture(int nPlayer)
int
getWidth(int playerIndex)
void
render()
void
setTargetZoom(int playerIndex, float target)
void
setTargetZoomNoRestart(float target)
void
setZoomLevelsFromOption(java.lang.String levels)
boolean
test()
void
update()
void
updateMipMaps()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
Current
-
FBOrendered
-
zoom
public float[] zoom -
targetZoom
public float[] targetZoom -
startZoom
public float[] startZoom -
bAutoZoom
public boolean[] bAutoZoom -
bZoomEnabled
public boolean bZoomEnabled
-
-
Constructor Details
-
MultiTextureFBO2
public MultiTextureFBO2()
-
-
Method Details
-
getWidth
public int getWidth(int playerIndex) -
getHeight
public int getHeight(int playerIndex) -
setTargetZoom
public void setTargetZoom(int playerIndex, float target) -
setTargetZoomNoRestart
public void setTargetZoomNoRestart(float target) -
getDefaultZoomLevels
public java.util.ArrayList getDefaultZoomLevels() -
setZoomLevelsFromOption
public void setZoomLevelsFromOption(java.lang.String levels) -
destroy
public void destroy() -
create
public void create(int xres, int yres) throws java.lang.Exception- Throws:
java.lang.Exception
-
update
public void update() -
render
public void render() -
getCurrent
-
getTexture
-
updateMipMaps
public void updateMipMaps() -
doZoomScroll
public void doZoomScroll(int playerIndex, int del) -
getNextZoom
public float getNextZoom(int playerIndex, int del) -
getMinZoom
public float getMinZoom() -
getMaxZoom
public float getMaxZoom() -
test
public boolean test()
-