de.matthiasmann.twl.renderer
Interface FontCache

All Superinterfaces:
Resource
All Known Implementing Classes:
LWJGLFontCache

public interface FontCache
extends Resource

A cached text block interface


Method Summary
 void draw(AnimationState as, int x, int y)
          Draw the cached text block at the given coordinates with the given color
 int getHeight()
          Returns the height in pixels of the cached text block
 int getWidth()
          Returns the width in pixels of the cached text block
 
Methods inherited from interface de.matthiasmann.twl.renderer.Resource
destroy
 

Method Detail

getWidth

int getWidth()
Returns the width in pixels of the cached text block

Returns:
the width in pixels of the cached text block

getHeight

int getHeight()
Returns the height in pixels of the cached text block

Returns:
the height in pixels of the cached text block

draw

void draw(AnimationState as,
          int x,
          int y)
Draw the cached text block at the given coordinates with the given color

Parameters:
as - A time source for animation - may be null
x - the left coordinate
y - the top coordinate