gzz.client.gl
Class GLScreen

java.lang.Object
  |
  +--gzz.client.GraphicsAPI.AbstractRenderingSurface
        |
        +--gzz.client.gl.GLRenderingSurface
              |
              +--gzz.client.gl.GLScreen
All Implemented Interfaces:
GraphicsAPI.RenderingSurface, GraphicsAPI.Window

public class GLScreen
extends GLRenderingSurface
implements GraphicsAPI.Window


Field Summary
static boolean dbg
           
static java.lang.String rcsid
           
 
Constructor Summary
GLScreen(GraphicsAPI api)
           
 
Method Summary
 void addTimeout(int ms, java.lang.Object o)
          Add a timeout: Binder.timeout() is called after given number of milliseconds.
 void chg()
           
protected  GL.RenderingSurface createGLObj(int x, int y, int w, int h)
          Called during initialization to create the corresponding GL object.
 GL.Window getWindow()
           
 void registerBinder(Binder s)
          Set the event handler for the window.
 void setLocation(int x, int y, int w, int h)
          Try to set the location and size of the window.
 
Methods inherited from class gzz.client.gl.GLRenderingSurface
createVobScene, getRenderingSurface, getSize, readPixels, renderAnim, renderStill, timeRender
 
Methods inherited from class gzz.client.GraphicsAPI.AbstractRenderingSurface
createVobScene, getGraphicsAPI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gzz.client.GraphicsAPI.Window
getGraphicsAPI
 
Methods inherited from interface gzz.client.GraphicsAPI.RenderingSurface
createVobScene, createVobScene, getSize, readPixels, renderAnim, renderStill
 

Field Detail

rcsid

public static final java.lang.String rcsid
See Also:
Constant Field Values

dbg

public static boolean dbg
Constructor Detail

GLScreen

public GLScreen(GraphicsAPI api)
Method Detail

registerBinder

public void registerBinder(Binder s)
Description copied from interface: GraphicsAPI.Window
Set the event handler for the window.

Specified by:
registerBinder in interface GraphicsAPI.Window

getWindow

public GL.Window getWindow()

createGLObj

protected GL.RenderingSurface createGLObj(int x,
                                          int y,
                                          int w,
                                          int h)
Description copied from class: GLRenderingSurface
Called during initialization to create the corresponding GL object.

Overrides:
createGLObj in class GLRenderingSurface

setLocation

public void setLocation(int x,
                        int y,
                        int w,
                        int h)
Description copied from interface: GraphicsAPI.Window
Try to set the location and size of the window. Not guaranteed to succeed.

Specified by:
setLocation in interface GraphicsAPI.Window

addTimeout

public void addTimeout(int ms,
                       java.lang.Object o)
Description copied from interface: GraphicsAPI.Window
Add a timeout: Binder.timeout() is called after given number of milliseconds.

Specified by:
addTimeout in interface GraphicsAPI.Window

chg

public void chg()