/** Logs {@code msg} at the info level. */ public void info (String msg) { info(msg, (Throwable)null); }
/** Logs {@code msg} at the info level. */ public void info (String msg) { info(msg, (Throwable)null); }
private void maybePersistPreferences() { if (preferences instanceof MemoryPreferences) return; try { preferences.flush(); isPersisted = true; } catch (Exception e) { log.info("Error persisting properties: " + e.getMessage()); isPersisted = false; } }
private void maybePersistPreferences() { if (preferences instanceof MemoryPreferences) return; try { preferences.flush(); isPersisted = true; } catch (Exception e) { log.info("Error persisting properties: " + e.getMessage()); isPersisted = false; } }
@Override public void drawString(float x, float y, String s, Color3f color) { plat.log().info("drawString not yet implemented in DebugDrawBox2D: " + s); }
private void maybePersistPreferences() { if (preferences instanceof MemoryPreferences) return; try { preferences.flush(); isPersisted = true; } catch (Exception e) { platform.log().info("Error persisting properties: " + e.getMessage()); isPersisted = false; } }
private void maybePersistPreferences() { if (preferences instanceof MemoryPreferences) return; try { preferences.flush(); isPersisted = true; } catch (Exception e) { platform.log().info("Error persisting properties: " + e.getMessage()); isPersisted = false; } }
/** Logs {@code msg} at the info level. * @param args additional arguments formatted via {@link #format} and appended to the message. * {@code args} may contain an exception as its lone final argument which will be logged long * with the formatted message. */ public void info (String msg, Object... args) { info(format(msg, args), getCause(args)); }
/** Logs {@code msg} at the info level. * @param args additional arguments formatted via {@link #format} and appended to the message. * {@code args} may contain an exception as its lone final argument which will be logged long * with the formatted message. */ public void info (String msg, Object... args) { info(format(msg, args), getCause(args)); }
@Override public void onPause() { log().info("Paused " + elapsed()); notifications.add("Paused at " + elapsed() + "s"); } @Override
@Override public void drawString(float x, float y, String s, Color3f color) { if (canvas == null) { log().error(CANVASERROR); return; } log().info("drawString not yet implemented in DebugDrawBox2D: " + s); }
@Override public void onEmit () { log().info("Setting text to " + source.text.get()); target.text.update(source.text.get()); } });
@Override public void onResume() { log().info("Resumed " + elapsed()); notifications.add("Resumed at " + elapsed() + "s"); updateDisplay(); } @Override
/** * Informs the graphics system that the main framebuffer size has changed. The supplied size * should be in physical pixels. */ protected void viewportChanged (int pixelWidth, int pixelHeight) { viewPixelWidth = pixelWidth; viewPixelHeight = pixelHeight; viewSizeM.width = scale.invScaled(pixelWidth); viewSizeM.height = scale.invScaled(pixelHeight); plat.log().info("viewPortChanged " + pixelWidth + "x" + pixelHeight + " / " + scale.factor + " -> " + viewSize); }
/** * Informs the graphics system that the main framebuffer size has changed. The supplied size * should be in physical pixels. */ protected void viewportChanged (int pixelWidth, int pixelHeight) { viewPixelWidth = pixelWidth; viewPixelHeight = pixelHeight; viewSizeM.width = scale.invScaled(pixelWidth); viewSizeM.height = scale.invScaled(pixelHeight); plat.log().info("viewPortChanged " + pixelWidth + "x" + pixelHeight + " / " + scale.factor + " -> " + viewSize); }
@Override public void showTransitionCompleted () { super.showTransitionCompleted(); game().plat.log().info(this + ".showTransitionCompleted()"); }
@Override public void hideTransitionStarted () { super.hideTransitionStarted(); game().plat.log().info(this + ".hideTransitionStarted()"); }
void onSizeChanged(int pixelWidth, int pixelHeight) { ctx.setSize(pixelWidth, pixelHeight); platform.log().info("Updating size " + pixelWidth + "x" + pixelHeight + " / " + ctx.scale.factor + " -> " + screenWidth() + "x" + screenHeight()); }
void onSizeChanged(int pixelWidth, int pixelHeight) { ctx.setSize(pixelWidth, pixelHeight); platform.log().info("Updating size " + pixelWidth + "x" + pixelHeight + " / " + ctx.scale.factor + " -> " + screenWidth() + "x" + screenHeight()); }
@Override public void wasRemoved () { super.wasRemoved(); game().plat.log().info(this + ".wasRemoved()"); iface.disposeRoots(); layer.close(); }