org.osm2world.viewer.view
public class TextRendererShader extends Object implements TextRenderer
Constructor and Description |
---|
TextRendererShader(GL2ES2 gl) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Free all resources.
|
protected void |
drawText(String string,
float x,
float y,
Color color) |
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.
|
protected void drawText(String string, float x, float y, Color color)
public void destroy()
TextRenderer
destroy
in interface TextRenderer
public void drawTextTop(String string, float x, float y, Color color)
TextRenderer
x
and y
.drawTextTop
in interface TextRenderer
string
- the text to drawx
- left offsety
- top offsetcolor
- text colorpublic void drawTextBottom(String string, float x, float y, Color color)
TextRenderer
x
and y
.drawTextBottom
in interface TextRenderer
string
- the text to drawx
- left offsety
- bottom offsetcolor
- text colorpublic void reshape(int width, int height)
TextRenderer
reshape
in interface TextRenderer
public void setScale(float scale)
TextRenderer
setScale
in interface TextRenderer