URenderer.KeyListener
Constructor | Description |
---|---|
URendererOGL() |
Modifier and Type | Method | Description |
---|---|---|
void |
drawGlyph(char glyph,
int destx,
int desty,
UColor tint,
int offX,
int offY) |
|
void |
drawGlyphOutline(char glyph,
int destx,
int desty,
UColor tint,
int offX,
int offY) |
|
void |
drawRect(int x,
int y,
int w,
int h,
UColor col) |
|
void |
drawRectBorder(int x,
int y,
int w,
int h,
int borderThickness,
UColor bgColor,
UColor borderColor) |
|
void |
drawString(int x,
int y,
UColor col,
java.lang.String str) |
|
View |
getRootView() |
Get the top level view for attaching overlays.
|
int |
tileHeight() |
|
int |
tileWidth() |
|
void |
initialize() |
Set up the rendering system.
|
void |
paintScreen() |
|
void |
pollEvents() |
Poll the game window for any key events.
|
void |
render() |
Repaint the game window.
|
void |
render(View view) |
|
void |
setKeyListener(URenderer.KeyListener listener) |
Set a listener for key events from the game window.
|
void |
setRootView(View root) |
Set the top level view for the game window.
|
boolean |
windowShouldClose() |
A check to see whether the game window has been closed.
|
public View getRootView()
URenderer
getRootView
in interface URenderer
public void setRootView(View root)
URenderer
setRootView
in interface URenderer
public boolean windowShouldClose()
URenderer
windowShouldClose
in interface URenderer
public void pollEvents()
URenderer
pollEvents
in interface URenderer
public void setKeyListener(URenderer.KeyListener listener)
URenderer
setKeyListener
in interface URenderer
public void initialize()
URenderer
initialize
in interface URenderer
public void render()
URenderer
public void render(View view)
public void drawString(int x, int y, UColor col, java.lang.String str)
drawString
in interface URenderer
public void drawGlyph(char glyph, int destx, int desty, UColor tint, int offX, int offY)
public void drawGlyphOutline(char glyph, int destx, int desty, UColor tint, int offX, int offY)
drawGlyphOutline
in interface URenderer
public void drawRect(int x, int y, int w, int h, UColor col)
public void drawRectBorder(int x, int y, int w, int h, int borderThickness, UColor bgColor, UColor borderColor)
drawRectBorder
in interface URenderer
public int tileHeight()
tileHeight
in interface URenderer
public void paintScreen()