|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGLCanvas
com.jmex.awt.jogl.JOGLAWTCanvas
public class JOGLAWTCanvas
Constructor Summary | |
---|---|
JOGLAWTCanvas(GLCapabilities caps)
|
Method Summary | |
---|---|
void |
display(GLAutoDrawable drawable)
|
void |
displayChanged(GLAutoDrawable drawable,
boolean modeChanged,
boolean deviceChanged)
|
java.awt.Color |
getBackground()
|
int |
getTargetSyncRate()
|
void |
init(GLAutoDrawable drawable)
|
boolean |
isDrawWhenDirty()
|
boolean |
isUpdateInput()
|
void |
killGfxContext()
Destroy GFX context |
void |
makeDirty()
Force this canvas to be flagged as dirty. |
void |
paint(java.awt.Graphics arg0)
|
void |
removeNotify()
|
void |
reshape(GLAutoDrawable drawable,
int x,
int y,
int width,
int height)
|
void |
setAutoKillGfxContext(boolean shouldAutoKillGfxContext)
|
void |
setBackground(java.awt.Color c)
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JOGLAWTCanvas(GLCapabilities caps)
Method Detail |
---|
public void setBackground(java.awt.Color c)
public java.awt.Color getBackground()
public void setImplementor(JMECanvasImplementor impl)
JMECanvas
setImplementor
in interface JMECanvas
impl
- the implementor object that will provide rendering/update
logic.public void setUpdateInput(boolean doUpdate)
setUpdateInput
in interface JMECanvas
doUpdate
- true if the logic loop of this canvas should ask jME's input
system to "poll".public boolean isUpdateInput()
isUpdateInput
in interface JMECanvas
public void init(GLAutoDrawable drawable)
public void display(GLAutoDrawable drawable)
public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
public void paint(java.awt.Graphics arg0)
public void setTargetRate(int fps)
JMECanvas
setTargetRate
in interface JMECanvas
fps
- the desired target rate in frames per secondpublic int getTargetSyncRate()
getTargetSyncRate
in interface JMECanvas
JMECanvas.setTargetRate(int)
public void setDrawWhenDirty(boolean whenDirty)
setDrawWhenDirty
in interface JMECanvas
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.public boolean isDrawWhenDirty()
isDrawWhenDirty
in interface JMECanvas
public void makeDirty()
JMECanvas
JMECanvas.setDrawWhenDirty(boolean)
.
makeDirty
in interface JMECanvas
public void removeNotify()
public void setAutoKillGfxContext(boolean shouldAutoKillGfxContext)
setAutoKillGfxContext
in interface JMECanvas
shouldAutoKillGfxContext
- true(default) if the GFX Context should be destroyed
as soon as the canvas is removed from it's parent containerpublic boolean shouldAutoKillGfxContext()
shouldAutoKillGfxContext
in interface JMECanvas
public void killGfxContext()
JMECanvas
killGfxContext
in interface JMECanvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |