org.lee.mugen.core.renderer.lwjgl
Class LwjgGameWindow

java.lang.Object
  extended by java.awt.Component
      extended by org.lee.mugen.core.renderer.lwjgl.LwjgGameWindow
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, GameWindow

public class LwjgGameWindow
extends java.awt.Component
implements GameWindow

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LwjgGameWindow(StateMachine statemachine)
           
 
Method Summary
 void addSpriteKeyProcessor(SpriteCmdProcess scp)
           
 void drawFinal(Texture backbufferTexture)
           
 Game getCallback()
           
 int getHeight()
           
 TextureLoader getTextureLoader()
           
 java.lang.String getTitle()
           
 int getWidth()
           
static void main(java.lang.String[] args)
           
 void removeSpriteKeyProcessor(SpriteCmdProcess scp)
           
 void setCallback(Game callback)
           
 void setGameWindowCallback(Game callback)
          Set the callback that should be notified of the window events.
 void setHeight(int height)
           
 void setResolution(int x, int y)
          Set the game display resolution
 void setTextureLoader(TextureLoader textureLoader)
           
 void setTitle(java.lang.String title)
          Set the title of the game window
 void setWidth(int width)
           
 void start()
          Start the game window rendering the display
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LwjgGameWindow

public LwjgGameWindow(StateMachine statemachine)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setResolution

public void setResolution(int x,
                          int y)
Description copied from interface: GameWindow
Set the game display resolution

Specified by:
setResolution in interface GameWindow
Parameters:
x - The new x resolution of the display
y - The new y resolution of the display

getTextureLoader

public TextureLoader getTextureLoader()

setTextureLoader

public void setTextureLoader(TextureLoader textureLoader)

addSpriteKeyProcessor

public void addSpriteKeyProcessor(SpriteCmdProcess scp)
Specified by:
addSpriteKeyProcessor in interface GameWindow

removeSpriteKeyProcessor

public void removeSpriteKeyProcessor(SpriteCmdProcess scp)

setGameWindowCallback

public void setGameWindowCallback(Game callback)
Description copied from interface: GameWindow
Set the callback that should be notified of the window events.

Specified by:
setGameWindowCallback in interface GameWindow
Parameters:
callback - The callback that should be notified of game window events.

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: GameWindow
Set the title of the game window

Specified by:
setTitle in interface GameWindow
Parameters:
title - The new title for the game window

getCallback

public Game getCallback()

setCallback

public void setCallback(Game callback)

getHeight

public int getHeight()
Overrides:
getHeight in class java.awt.Component

setHeight

public void setHeight(int height)

getWidth

public int getWidth()
Overrides:
getWidth in class java.awt.Component

setWidth

public void setWidth(int width)

getTitle

public java.lang.String getTitle()

start

public void start()
           throws java.lang.Exception
Description copied from interface: GameWindow
Start the game window rendering the display

Specified by:
start in interface GameWindow
Throws:
java.lang.Exception

drawFinal

public void drawFinal(Texture backbufferTexture)