org.osm2world.viewer.view
public interface TextRenderer
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Free all resources.
|
void |
drawTextBottom(String string,
float x,
float y,
Color color)
Draw text beginning at the bottomleft corner of the window with offset
x and y . |
void |
drawTextTop(String string,
float x,
float y,
Color color)
Draw text beginning at the topleft corner of the window with offset
x and y . |
void |
reshape(int width,
int height)
Reshape the rendering region of the text renderer.
|
void |
setScale(float scale)
Set the scale factor to apply to the whole textrendering.
|
void drawTextTop(String string, float x, float y, Color color)
x
and y
.string
- the text to drawx
- left offsety
- top offsetcolor
- text colorvoid drawTextBottom(String string, float x, float y, Color color)
x
and y
.string
- the text to drawx
- left offsety
- bottom offsetcolor
- text colorvoid reshape(int width, int height)
void setScale(float scale)
void destroy()