Package playn.java
Class JavaGraphics
java.lang.Object
playn.core.Graphics
playn.java.JavaGraphics
-
Nested Class Summary
Nested classes/interfaces inherited from class playn.core.Graphics
Graphics.Orientation, Graphics.OrientationDetail -
Field Summary
Fields inherited from class playn.core.Graphics
defaultRenderTarget, deviceOrient, gl, orientDetail, viewSize -
Method Summary
Modifier and TypeMethodDescriptioncreateCanvas(Scale scale, int pixelWidth, int pixelHeight) layoutText(String text, TextFormat format) layoutText(String text, TextFormat format, TextWrap wrap) voidregisterFont(String name, Font font) Registers a font with the graphics system.abstract voidsetSize(int width, int height, boolean fullscreen) Changes the size of the PlayN window.Methods inherited from class playn.core.Graphics
createCanvas, createCanvas, createTexture, createTexture, scale, screenSize
-
Method Details
-
registerFont
Registers a font with the graphics system.- Parameters:
name- the name under which to register the font.font- the Java font, which can be loaded from a path viaJavaAssets.getFont(java.lang.String).
-
setSize
public abstract void setSize(int width, int height, boolean fullscreen) Changes the size of the PlayN window. The supplied size is in display units, it will be converted to pixels based on the display scale factor. -
createCanvas
- Specified by:
createCanvasin classGraphics
-
createPath
- Specified by:
createPathin classGraphics
-
createGradient
- Specified by:
createGradientin classGraphics
-
layoutText
- Specified by:
layoutTextin classGraphics
-
layoutText
- Specified by:
layoutTextin classGraphics
-