Canvas.drawTexture

Function/Meaning

Draw a single texture

Type
Canvasclassmethod of
Syntax
drawTexture(texture:Texture)
Arguments
texture

Specifies the texture to use for drawing

Return value
None (void)
Explanation

It is drawn with the defaultShader.
The position, scaling, and rotation are specified by matrix.
It doesn't matter if you specify the Offscreen class as well as the Texture class for the texture.
If you specify an Offscreen class, it is assumed that the Offscreen class has been removed from the renderTarget (so that it does not cycle).