|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JMECanvas
JMECanvas
is an interface to classes allowing jME generated
graphics to be displayed in an AWT/Swing/SWT or other such UI framework.
Method Summary | |
---|---|
int |
getTargetSyncRate()
|
boolean |
isDrawWhenDirty()
|
boolean |
isUpdateInput()
|
void |
killGfxContext()
Destroy GFX context |
void |
makeDirty()
Force this canvas to be flagged as dirty. |
void |
setAutoKillGfxContext(boolean shouldAutoKillGfxContext)
|
void |
setDrawWhenDirty(boolean whenDirty)
|
void |
setImplementor(JMECanvasImplementor impl)
Sets the logic/gameplay implementation for this JMECanvas |
void |
setTargetRate(int fps)
Set the desired update/redraw frequency of this canvas. |
void |
setUpdateInput(boolean doUpdate)
|
boolean |
shouldAutoKillGfxContext()
|
Method Detail |
---|
void setImplementor(JMECanvasImplementor impl)
impl
- the implementor object that will provide rendering/update
logic.boolean isUpdateInput()
void setUpdateInput(boolean doUpdate)
doUpdate
- true if the logic loop of this canvas should ask jME's input
system to "poll".void setAutoKillGfxContext(boolean shouldAutoKillGfxContext)
shouldAutoKillGfxContext
- true(default) if the GFX Context should be destroyed
as soon as the canvas is removed from it's parent containerboolean shouldAutoKillGfxContext()
void killGfxContext()
void setTargetRate(int fps)
fps
- the desired target rate in frames per secondint getTargetSyncRate()
setTargetRate(int)
void setDrawWhenDirty(boolean whenDirty)
whenDirty
- true if we should only draw if the canvas is flagged as dirty.
false if we should draw on every loop regardless of dirty
state.boolean isDrawWhenDirty()
void makeDirty()
setDrawWhenDirty(boolean)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |