Codota Logo
Scale.invScaledFloor
Code IndexAdd Codota to your IDE (free)

How to use
invScaledFloor
method
in
playn.core.gl.Scale

Best Java code snippets using playn.core.gl.Scale.invScaledFloor (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: threerings/playn

@Override
public int height() {
 return scale.invScaledFloor(rootHeight);
}
origin: threerings/playn

@Override
public int width() {
 return scale.invScaledFloor(rootWidth);
}
origin: threerings/playn

/**
 * Sets the frame buffer to the specified width and height (in pixels). The view will potentially
 * be smaller than this size if a HiDPI scale factor is in effect.
 */
public final void setSize(int pixelWidth, int pixelHeight) {
 viewWidth = scale.invScaledFloor(pixelWidth);
 viewHeight = scale.invScaledFloor(pixelHeight);
 curFbufWidth = defaultFbufWidth = pixelWidth;
 curFbufHeight = defaultFbufHeight = pixelHeight;
 viewConfigChanged();
}
origin: com.googlecode.playn/playn-java

@Override
public int screenWidth() {
 return ctx.scale.invScaledFloor(Display.getDesktopDisplayMode().getWidth());
}
origin: threerings/playn

@Override
public int screenWidth() {
 return ctx.scale.invScaledFloor(Display.getDesktopDisplayMode().getWidth());
}
origin: threerings/playn

@Override
public int screenHeight() {
 return ctx.scale.invScaledFloor(Display.getDesktopDisplayMode().getHeight());
}
origin: com.googlecode.playn/playn-java

@Override
public int screenHeight() {
 return ctx.scale.invScaledFloor(Display.getDesktopDisplayMode().getHeight());
}
origin: com.googlecode.playn/playn-swt-java

 public void handleEvent(Event event) {
  // resize our GLCanvas to fill the window; we do manual layout so that other SWT widgets
  // can be overlaid on top of our GLCanvas
  Rectangle bounds = comp.getBounds();
  comp.setBounds(bounds);
  canvas.setBounds(bounds);
  makeCurrent();
  // SWTGraphics.this.platform.log().info("Resized " + bounds.width + "x" + bounds.height);
  ctx.setSize(ctx.scale.invScaledFloor(bounds.width), ctx.scale.invScaledFloor(bounds.height));
 }
});
origin: threerings/playn

 public void handleEvent(Event event) {
  // resize our GLCanvas to fill the window; we do manual layout so that other SWT widgets
  // can be overlaid on top of our GLCanvas
  Rectangle bounds = comp.getBounds();
  comp.setBounds(bounds);
  canvas.setBounds(bounds);
  makeCurrent();
  // SWTGraphics.this.platform.log().info("Resized " + bounds.width + "x" + bounds.height);
  ctx.setSize(ctx.scale.invScaledFloor(bounds.width), ctx.scale.invScaledFloor(bounds.height));
 }
});
playn.core.glScaleinvScaledFloor

Javadoc

Returns the supplied length inverse scaled by our scale factor and rounded down.

Popular methods of Scale

  • scaledCeil
  • invScaled
  • <init>
  • getScaledResources
  • scaled
    Returns the supplied length scaled by our scale factor.
  • computePath
  • scaledFloor

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now