|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.golden.gamedev.engine.graphics.FullScreenMode
Graphics frame work for fullscreen exclusive environment,
used by GameEngine
to create game environment.
Field Summary | |
protected Frame |
frame
|
static GraphicsConfiguration |
gc
|
Constructor Summary | |
FullScreenMode(Dimension d)
|
|
FullScreenMode(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. |
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 frame
Constructor Detail |
public FullScreenMode(Dimension d, boolean useBufferStrategy)
public FullScreenMode(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |