|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRenderDevice
| 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. |
void |
flip()
Flips front- and backbuffer |
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)
|
| Method Detail |
|---|
IRenderDevice open(java.awt.DisplayMode displayMode)
throws EEngineException
IRenerDevice with the given
DisplayMode
displayMode - DisplayMode to set
IRenderDevice instance or null on failure to
create
EEngineException - Thrown on creation errorboolean isOpen()
IRenderDevice is openvoid close()
IRenderDevice.
void clear(java.awt.Color color)
throws EEngineException
color - Color to fill the background with
EEngineException - Thrown on closed device or missing begin callboolean begin()
IRenderDevices render state and renders in
world space.
boolean begin(boolean onScreen)
IRenderDevices render state.
onScreen - If true, rendering happens in screen coordinates instead of
world coordinates
void end()
IRenderDevices render state. Must be called
before any rendering operation.
void render(IRenderPrimitive renderPrimitive)
throws EEngineException
IRenderPrimitive to this device
renderPrimitive - Primitive to render
EEngineException - Thrown on closed device or missing begin callvoid flip()
void attachInputDevice(IInputDevice inputDevice)
inputDevice - Attaches the inputDevice to this IRenderDevicevoid detatchInputDevice(IInputDevice inputDevice)
inputDevice - Detaches the inputDevice from this IRenderDeviceint getWidth()
IRenderDeviceint getHeight()
IRenderDevicejava.awt.Rectangle getExtents()
IRenderDevices extentsViewport getViewport()
Viewportvoid setViewport(Viewport viewport)
viewport - The device Viewport
java.awt.image.BufferedImage createImage(int width,
int height,
int transparency)
width - Width of the image to createheight - Height of the image to createtransparency - Transparency of the image to create
java.awt.image.BufferedImage caputeScreen()
throws EEngineException
BufferedImage of the screen
EEngineException - Thrown on capture errorjava.awt.Container getPeer()
java.awt.Insets getInsets()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||