gzz.gfx.gl
Class GLSpans

java.lang.Object
  |
  +--gzz.gfx.gl.GLSpans

public class GLSpans
extends java.lang.Object

Manage image and page spans for OpenGL.


Nested Class Summary
static class GLSpans.Rect
          A rectangle in a texture.
 
Field Summary
static boolean align4
           
static java.lang.String colorFormat
          The format to use for color spans.
static boolean dbg
           
static int LODscale
          Unfortunately we need to store the textures at two different levels since adjusting TEXTURE_BASE_LEVEL does not have enough effect.
static java.lang.String monochromeFormat
          The format to use for monochrome spans.
 
Constructor Summary
GLSpans()
           
 
Method Summary
static gzz.gfx.gl.GLSpans.LoadedTexRect getImage(java.lang.String file)
           
static GLSpans.Rect getRect(ImageSpan span)
          Return a Rect containing the image span
static GLSpans.Rect getRect(ImageSpan span, int lod)
          Return a Rect containing the image span
static GLSpans.Rect getRect(PageSpan span)
          Return a Rect containing the first page of the given pagespan.
static GLSpans.Rect getRect(PageSpan span, int lod)
          Return a Rect containing the first page of the given pagespan.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbg

public static boolean dbg

monochromeFormat

public static java.lang.String monochromeFormat
The format to use for monochrome spans.


colorFormat

public static java.lang.String colorFormat
The format to use for color spans.


align4

public static boolean align4

LODscale

public static int LODscale
Unfortunately we need to store the textures at two different levels since adjusting TEXTURE_BASE_LEVEL does not have enough effect.

Constructor Detail

GLSpans

public GLSpans()
Method Detail

getRect

public static GLSpans.Rect getRect(PageSpan span)
Return a Rect containing the first page of the given pagespan.


getRect

public static GLSpans.Rect getRect(PageSpan span,
                                   int lod)
Return a Rect containing the first page of the given pagespan.

Parameters:
lod - The level of detail. Currently, only 0 (sharpest) and 1 (smallest) are known.

getRect

public static GLSpans.Rect getRect(ImageSpan span)
Return a Rect containing the image span


getRect

public static GLSpans.Rect getRect(ImageSpan span,
                                   int lod)
Return a Rect containing the image span

Parameters:
lod - The level of detail. Currently, only 0 is known

getImage

public static gzz.gfx.gl.GLSpans.LoadedTexRect getImage(java.lang.String file)