gzz.client.gl
Class GLRenderingSurface

java.lang.Object
  |
  +--gzz.client.GraphicsAPI.AbstractRenderingSurface
        |
        +--gzz.client.gl.GLRenderingSurface
All Implemented Interfaces:
GraphicsAPI.RenderingSurface
Direct Known Subclasses:
GLScreen

public class GLRenderingSurface
extends GraphicsAPI.AbstractRenderingSurface


Field Summary
static boolean dbg
           
static java.lang.String rcsid
           
 
Method Summary
protected  GL.RenderingSurface createGLObj(int x, int y, int w, int h)
          Called during initialization to create the corresponding GL object.
 VobScene createVobScene(java.awt.Dimension size)
          Create a new vobscene of the appropriate type for this window.
 GL.RenderingSurface getRenderingSurface()
           
 java.awt.Dimension getSize()
          Get the current size of the window.
 int[] readPixels(int x, int y, int w, int h)
          Read pixels from the screen.
 void renderAnim(VobScene prev, VobScene next, float fract, float lod, boolean showFinal)
          Render the interpolated form between the two vobscenes.
 void renderStill(VobScene scene, float lod)
          Render the still image of the vobscreen.
 float timeRender(VobScene vs, int iters)
           
 
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
 

Field Detail

rcsid

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

dbg

public static boolean dbg
Method Detail

getRenderingSurface

public GL.RenderingSurface getRenderingSurface()

createGLObj

protected GL.RenderingSurface createGLObj(int x,
                                          int y,
                                          int w,
                                          int h)
Called during initialization to create the corresponding GL object.


createVobScene

public VobScene createVobScene(java.awt.Dimension size)
Description copied from interface: GraphicsAPI.RenderingSurface
Create a new vobscene of the appropriate type for this window.


getSize

public java.awt.Dimension getSize()
Description copied from interface: GraphicsAPI.RenderingSurface
Get the current size of the window.


renderStill

public void renderStill(VobScene scene,
                        float lod)
Description copied from interface: GraphicsAPI.RenderingSurface
Render the still image of the vobscreen.


renderAnim

public void renderAnim(VobScene prev,
                       VobScene next,
                       float fract,
                       float lod,
                       boolean showFinal)
Description copied from interface: GraphicsAPI.RenderingSurface
Render the interpolated form between the two vobscenes.


readPixels

public int[] readPixels(int x,
                        int y,
                        int w,
                        int h)
Description copied from interface: GraphicsAPI.RenderingSurface
Read pixels from the screen.

Returns:
An array of size w*h, of A, R, G, B from highest to lowest bit. (BGRA)

timeRender

public float timeRender(VobScene vs,
                        int iters)