gzz.client.gl
Class GLAPI

java.lang.Object
  |
  +--gzz.client.GraphicsAPI
        |
        +--gzz.client.gl.GLAPI

public class GLAPI
extends GraphicsAPI

Java.awt.Graphics implementation of GraphicsAPI


Nested Class Summary
 
Nested classes inherited from class gzz.client.GraphicsAPI
GraphicsAPI.AbstractRenderingSurface, GraphicsAPI.AbstractWindow, GraphicsAPI.RenderingSurface, GraphicsAPI.Window
 
Constructor Summary
GLAPI()
           
 
Method Summary
 GraphicsAPI.RenderingSurface createStableOffscreen(int w, int h)
          Create an off-screen rendering surface that does not get corrupted by other windows.
 GraphicsAPI.Window createWindow()
          Create a new window.
 TextStyle getTextStyle(java.lang.String family, int style, int size)
          Obtain a text style object for an abstract font at a given size.
 void startUpdateManager(java.lang.Runnable r)
          Start the update manager thread and run r from that thread.
 
Methods inherited from class gzz.client.GraphicsAPI
getInstance, getTypeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLAPI

public GLAPI()
Method Detail

startUpdateManager

public void startUpdateManager(java.lang.Runnable r)
Description copied from class: GraphicsAPI
Start the update manager thread and run r from that thread. Used because e.g. OpenGL and GLX are easier to manage if everything is done in one thread. Windows must not be created by any other thread.

Specified by:
startUpdateManager in class GraphicsAPI

createStableOffscreen

public GraphicsAPI.RenderingSurface createStableOffscreen(int w,
                                                          int h)
Description copied from class: GraphicsAPI
Create an off-screen rendering surface that does not get corrupted by other windows.

Specified by:
createStableOffscreen in class GraphicsAPI

createWindow

public GraphicsAPI.Window createWindow()
Description copied from class: GraphicsAPI
Create a new window.

Specified by:
createWindow in class GraphicsAPI

getTextStyle

public TextStyle getTextStyle(java.lang.String family,
                              int style,
                              int size)
Description copied from class: GraphicsAPI
Obtain a text style object for an abstract font at a given size. The parameters are as in java.awt.Font#Font()

Specified by:
getTextStyle in class GraphicsAPI