|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.esw.eengine.device.render.AbstractRenderDevice
public abstract class AbstractRenderDevice
| Method Summary | |
|---|---|
void |
attachInputDevice(IInputDevice inputDevice)
|
boolean |
begin()
Initializes the IRenderDevices render state and renders in
world space. |
boolean |
begin(boolean onScreen)
Initializes the IRenderDevices render state. |
java.awt.image.BufferedImage |
caputeScreen()
|
void |
clear(java.awt.Color color)
|
void |
close()
Closes the IRenderDevice. |
java.awt.image.BufferedImage |
createImage(int width,
int height,
int transparency)
|
void |
detatchInputDevice(IInputDevice inputDevice)
|
void |
end()
Clears the IRenderDevices render state. |
java.awt.Rectangle |
getExtents()
|
int |
getHeight()
|
java.awt.Insets |
getInsets()
|
java.awt.Container |
getPeer()
|
Viewport |
getViewport()
|
int |
getWidth()
|
boolean |
isOpen()
|
IRenderDevice |
open(java.awt.DisplayMode displayMode)
opens the IRenerDevice with the given
DisplayMode |
void |
render(IRenderPrimitive renderPrimitive)
Renders the given IRenderPrimitive to this device |
void |
setViewport(Viewport viewport)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.esw.eengine.core.IRenderDevice |
|---|
flip |
| Method Detail |
|---|
public final IRenderDevice open(java.awt.DisplayMode displayMode)
throws EEngineException
IRenderDeviceIRenerDevice with the given
DisplayMode
open in interface IRenderDevicedisplayMode - DisplayMode to set
IRenderDevice instance or null on failure to
create
EEngineException - Thrown on creation errorIRenderDevice.open(java.awt.DisplayMode)public final boolean isOpen()
isOpen in interface IRenderDeviceIRenderDevice is openIRenderDevice.isOpen()public final void close()
IRenderDeviceIRenderDevice.
close in interface IRenderDeviceIRenderDevice.close()
public void clear(java.awt.Color color)
throws EEngineException
clear in interface IRenderDevicecolor - Color to fill the background with
EEngineException - Thrown on closed device or missing begin callIRenderDevice.clear(java.awt.Color)public boolean begin()
IRenderDeviceIRenderDevices render state and renders in
world space.
begin in interface IRenderDeviceIRenderDevice.begin()public boolean begin(boolean onScreen)
IRenderDeviceIRenderDevices render state.
begin in interface IRenderDeviceonScreen - If true, rendering happens in screen coordinates instead of
world coordinates
IRenderDevice.begin(boolean)public final void end()
IRenderDeviceIRenderDevices render state. Must be called
before any rendering operation.
end in interface IRenderDeviceIRenderDevice.end()
public final void render(IRenderPrimitive renderPrimitive)
throws EEngineException
IRenderDeviceIRenderPrimitive to this device
render in interface IRenderDevicerenderPrimitive - Primitive to render
EEngineException - Thrown on closed device or missing begin callIRenderDevice.render(de.esw.eengine.core.IRenderPrimitive)public void attachInputDevice(IInputDevice inputDevice)
attachInputDevice in interface IRenderDeviceinputDevice - Attaches the inputDevice to this IRenderDeviceIRenderDevice.attachInputDevice(de.esw.eengine.core.IInputDevice)public void detatchInputDevice(IInputDevice inputDevice)
detatchInputDevice in interface IRenderDeviceinputDevice - Detaches the inputDevice from this IRenderDeviceIRenderDevice.detatchInputDevice(de.esw.eengine.core.IInputDevice)public final int getWidth()
getWidth in interface IRenderDevicepublic final int getHeight()
getHeight in interface IRenderDevicepublic final java.awt.Rectangle getExtents()
getExtents in interface IRenderDeviceIRenderDevices extentsIRenderDevice.getExtents()public Viewport getViewport()
getViewport in interface IRenderDeviceViewportIRenderDevice.getViewport()public void setViewport(Viewport viewport)
setViewport in interface IRenderDeviceviewport - The device ViewportIRenderDevice.setViewport(de.esw.eengine.core.Viewport)
public java.awt.image.BufferedImage createImage(int width,
int height,
int transparency)
createImage in interface IRenderDevicewidth - Width of the image to createheight - Height of the image to createtransparency - Transparency of the image to create
IRenderDevice.createImage(int, int, int)
public java.awt.image.BufferedImage caputeScreen()
throws EEngineException
caputeScreen in interface IRenderDeviceBufferedImage of the screen
EEngineException - Thrown on capture errorIRenderDevice.caputeScreen()public java.awt.Container getPeer()
getPeer in interface IRenderDeviceIRenderDevice.getPeer()public java.awt.Insets getInsets()
getInsets in interface IRenderDevice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||