gzz.gfx.gl
Class GLSpanner

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

public class GLSpanner
extends java.lang.Object

A static class, superceding GLSpans, for loading Image spans into OpenGL textures.


Nested Class Summary
static class GLSpanner.SpanPage
           
static class GLSpanner.SpanRect
           
 
Field Summary
static boolean dbg
           
 
Constructor Summary
GLSpanner()
           
 
Method Summary
static void clearCache()
           
static void dangerouslyOverrideMemoryPartitioner()
          Irrevocably stop using the memorypartitioner interface for allocating textures.
static GLSpanner.SpanRect getSpanRect(PageSpan sp)
          Get the texrect for a 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
Constructor Detail

GLSpanner

public GLSpanner()
Method Detail

dangerouslyOverrideMemoryPartitioner

public static void dangerouslyOverrideMemoryPartitioner()
Irrevocably stop using the memorypartitioner interface for allocating textures.


getSpanRect

public static GLSpanner.SpanRect getSpanRect(PageSpan sp)
Get the texrect for a given pagespan. This method will return immediately, either with the texrect for the right texrect or with null, if no texture is currently obtainable.

Parameters:
sp - The span

clearCache

public static void clearCache()