Uses of Class
playn.core.Graphics
-
Uses of Graphics in playn.core
Fields in playn.core declared as GraphicsModifier and TypeFieldDescriptionfinal GraphicsRenderTarget.gfxA handle on our graphics services.Methods in playn.core that return GraphicsModifier and TypeMethodDescriptionabstract GraphicsPlatform.graphics()Returns theGraphicsservice.StubPlatform.graphics()Methods in playn.core with parameters of type GraphicsModifier and TypeMethodDescriptionstatic RenderTargetCreates 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 totargetusingdefaultBatchas 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 heightin display units.TextureSurface(Graphics gfx, QuadBatch defaultBatch, Texture texture) Creates a texture surface which renders totexture.