Phaser API Documentation

  Version: 
<private> renderCanvas(renderer, src, camera, parentMatrix, [renderTargetCtx], allowClip)

Description:

Renders this Game Object with the Canvas Renderer to the given Camera. The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera. This method should not be called directly. It is a utility function of the Render module.

Parameters:

name type arguments description
renderer Phaser.Renderer.Canvas.CanvasRenderer

A reference to the current active Canvas renderer.

src Phaser.GameObjects.Graphics

The Game Object being rendered in this call.

camera Phaser.Cameras.Scene2D.Camera

The Camera that is rendering the Game Object.

parentMatrix Phaser.GameObjects.Components.TransformMatrix

This transform matrix is defined if the game object is nested

renderTargetCtx CanvasRenderingContext2D <optional>

The target rendering context.

allowClip boolean

If true then path operations will be used instead of fill operations.