use of org.terasology.rendering.nui.UIScreenLayer in project Terasology by MovingBlocks.
the class NUIManagerInternal method render.
@Override
public void render() {
canvas.preRender();
Deque<UIScreenLayer> screensToRender = Queues.newArrayDeque();
for (UIScreenLayer layer : screens) {
screensToRender.push(layer);
if (!layer.isLowerLayerVisible()) {
break;
}
}
for (UIScreenLayer screen : screensToRender) {
canvas.drawWidget(screen, canvas.getRegion());
}
for (ControlWidget overlay : overlays.values()) {
canvas.drawWidget(overlay);
}
canvas.postRender();
}
Aggregations