URendererOGL
public interface URenderer
Modifier and Type | Interface | Description |
---|---|---|
static interface |
URenderer.KeyListener |
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 |
pollEvents() |
Poll the game window for any key events.
|
void |
render() |
Repaint the game window.
|
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.
|
View getRootView()
void setRootView(View root)
root
- void initialize()
boolean windowShouldClose()
void pollEvents()
void setKeyListener(URenderer.KeyListener listener)
listener
- void render()
int tileWidth()
int tileHeight()
void drawString(int x, int y, UColor col, java.lang.String str)
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)