|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.golden.gamedev.engine.graphics.WindowMode
Graphics frame work for window environment,
used by GameEngine
to create game environment.
Field Summary | |
protected Frame |
frmMain
|
static GraphicsConfiguration |
gc
|
Constructor Summary | |
WindowMode(Dimension d)
|
|
WindowMode(Dimension d,
boolean useBufferStrategy)
|
Method Summary | |
void |
cleanup()
Releases all graphics resources and do finalization. |
boolean |
flip()
Flips backbuffer to screen (primary surface). |
Graphics2D |
getBackBuffer()
Returns backbuffer where the rendering perform. |
Component |
getComponent()
Returns the component where the rendering perform. |
Dimension |
getSize()
Returns the dimension of this graphics component. |
void |
windowActivated(WindowEvent e)
|
void |
windowClosed(WindowEvent e)
|
void |
windowClosing(WindowEvent e)
|
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final GraphicsConfiguration gc
protected Frame frmMain
Constructor Detail |
public WindowMode(Dimension d, boolean useBufferStrategy)
public WindowMode(Dimension d)
Method Detail |
public Dimension getSize()
BaseGraphics
getSize
in interface BaseGraphics
public void cleanup()
BaseGraphics
cleanup
in interface BaseGraphics
public Graphics2D getBackBuffer()
BaseGraphics
getBackBuffer
in interface BaseGraphics
public boolean flip()
BaseGraphics
For Example:
do { Graphics2D g = BaseGraphics.getBackBuffer(); //.... do graphics operation } while (BaseGraphics.flip() == false);See VolatileImage for detail information.
flip
in interface BaseGraphics
BaseGraphics.getBackBuffer()
,
VolatileImage
public Component getComponent()
BaseGraphics
getComponent
in interface BaseGraphics
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |