|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.gfx.gl.GLSpans
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 |
public static boolean dbg
public static java.lang.String monochromeFormat
public static java.lang.String colorFormat
public static boolean align4
public static int LODscale
Constructor Detail |
public GLSpans()
Method Detail |
public static GLSpans.Rect getRect(PageSpan span)
public static GLSpans.Rect getRect(PageSpan span, int lod)
lod
- The level of detail. Currently, only 0 (sharpest) and 1 (smallest)
are known.public static GLSpans.Rect getRect(ImageSpan span)
public static GLSpans.Rect getRect(ImageSpan span, int lod)
lod
- The level of detail. Currently, only 0 is knownpublic static gzz.gfx.gl.GLSpans.LoadedTexRect getImage(java.lang.String file)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |