|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.graphics.GameGFX
public class GameGFX
Title: GameGFX
Description: A static element for storing the graphic context.
Copyright: Copyright (c) Dec 11, 2010
Field Summary | |
---|---|
java.awt.image.VolatileImage |
dbImage
|
protected java.awt.Graphics2D |
gScr
|
Constructor Summary | |
---|---|
protected |
GameGFX()
|
|
GameGFX(java.awt.Canvas canvas)
|
|
GameGFX(java.awt.Frame frame)
|
|
GameGFX(javax.swing.JPanel panel)
|
Method Summary | |
---|---|
java.awt.GraphicsConfiguration |
getGraphicsConfiguration()
|
java.awt.Graphics2D |
gfx()
Gets the current graphics context, based on the display mode set. |
void |
paintScreen()
Renders the final image for a frame to the screen, based on the buffer strategy. |
void |
setFullScreen(java.awt.GraphicsDevice graphicsDevice)
Makes the frame full screen exclusive mode. |
void |
updateBuffer()
Updates the graphics content for the next round of rendering, based on the buffer strategy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.awt.image.VolatileImage dbImage
protected java.awt.Graphics2D gScr
Constructor Detail |
---|
public GameGFX(java.awt.Frame frame)
public GameGFX(javax.swing.JPanel panel)
public GameGFX(java.awt.Canvas canvas)
protected GameGFX()
Method Detail |
---|
public java.awt.Graphics2D gfx()
public void paintScreen()
public void setFullScreen(java.awt.GraphicsDevice graphicsDevice)
graphicsDevice
- public void updateBuffer()
public java.awt.GraphicsConfiguration getGraphicsConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |