public class Updater extends java.lang.Object implements IFrameListener
Constructor and Description |
---|
Updater() |
Updater(java.util.concurrent.BlockingQueue<IUpdateable> queue) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(IUpdateable item) |
void |
clear() |
boolean |
hasItem(IUpdateable item) |
boolean |
isPaused() |
void |
onFrameRendered(float time)
Called after a frame has been rendererd
|
void |
onSurfaceChanged() |
void |
onSurfaceCreated() |
void |
pause() |
void |
removeItem(IUpdateable item) |
void |
unPause() |
public Updater(java.util.concurrent.BlockingQueue<IUpdateable> queue)
public Updater()
public void addItem(IUpdateable item)
public void removeItem(IUpdateable item)
public void clear()
public boolean hasItem(IUpdateable item)
public void pause()
public void unPause()
public boolean isPaused()
public void onSurfaceCreated()
onSurfaceCreated
in interface IFrameListener
public void onSurfaceChanged()
onSurfaceChanged
in interface IFrameListener
public void onFrameRendered(float time)
IFrameListener
onFrameRendered
in interface IFrameListener
time
- The time since the last frame has been rendered