Uses of Class
playn.core.Graphics
-
Uses of Graphics in playn.core
Fields in playn.core declared as GraphicsModifier and TypeFieldDescriptionfinal Graphics
RenderTarget.gfx
A handle on our graphics services.Methods in playn.core that return GraphicsModifier and TypeMethodDescriptionabstract Graphics
Platform.graphics()
Returns theGraphics
service.StubPlatform.graphics()
Methods in playn.core with parameters of type GraphicsModifier and TypeMethodDescriptionstatic RenderTarget
Creates a render target that renders totexture
.TextBlock.toCanvas
(Graphics gfx, TextBlock.Align align, int fillColor) Creates a canvas image large enough to accommodate this text block and renders the lines into it.Constructors in playn.core with parameters of type GraphicsModifierConstructorDescriptionRenderTarget
(Graphics gfx) Surface
(Graphics gfx, RenderTarget target, QuadBatch defaultBatch) Creates a surface which will render totarget
usingdefaultBatch
as its default quad renderer.Texture
(Graphics gfx, int id, Texture.Config config, int pixWidth, int pixHeight, Scale scale, float dispWidth, float dispHeight) TextureSurface
(Graphics gfx, QuadBatch defaultBatch, float width, float height) Creates a texture surface which iswidth x height
in display units.TextureSurface
(Graphics gfx, QuadBatch defaultBatch, Texture texture) Creates a texture surface which renders totexture
.