Class AbstractRenderer
- java.lang.Object
-
- nl.colorize.multimedialib.renderer.AbstractRenderer
-
- All Implemented Interfaces:
Renderer
- Direct Known Subclasses:
GDXRenderer,Java2DRenderer
public abstract class AbstractRenderer extends java.lang.Object implements Renderer
Provides a skeleton implementation of theRendererinterface, without imposing any restrictions related to the actual rendering.This implementation is not thread safe. It is assumed that the renderer is always used from the same rendering thread.
-
-
Constructor Summary
Constructors Constructor Description AbstractRenderer(Canvas canvas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRenderCallback(Renderable callback)voidaddUpdateCallback(Updatable callback)CanvasgetCanvas()protected voidnotifyRenderCallbacks(GraphicsContext graphics)protected voidnotifyUpdateCallbacks(float deltaTime)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nl.colorize.multimedialib.renderer.Renderer
getApplicationData, getInputDevice, getMediaLoader
-
-
-
-
Constructor Detail
-
AbstractRenderer
public AbstractRenderer(Canvas canvas)
-
-
Method Detail
-
addUpdateCallback
public void addUpdateCallback(Updatable callback)
- Specified by:
addUpdateCallbackin interfaceRenderer
-
notifyUpdateCallbacks
protected void notifyUpdateCallbacks(float deltaTime)
-
addRenderCallback
public void addRenderCallback(Renderable callback)
- Specified by:
addRenderCallbackin interfaceRenderer
-
notifyRenderCallbacks
protected void notifyRenderCallbacks(GraphicsContext graphics)
-
-