Static variables
Constructor
Variables
Methods
drawCharacters(text:Array<Int>, start:Int, length:Int, x:Float, y:Float):Void
Draw a single line of characters with the current color
, font
and fontSize
properties.
When drawing into rendertargets, you might have to use a different shader than the default one
- use the default shader when drawing into a transparent section of your rendertarget
- use a shader with alphaBlendSource = BlendOne
when drawing into a non-transparent section of your rendertarget
drawScaledImage(img:Image, dx:FastFloat, dy:FastFloat, dw:FastFloat, dh:FastFloat):Void
dx, dy, dw, dh
arguments is the rectangle to draw into the destination context
drawScaledSubImage(img:Image, sx:FastFloat, sy:FastFloat, sw:FastFloat, sh:FastFloat, dx:FastFloat, dy:FastFloat, dw:FastFloat, dh:FastFloat):Void
sx, sy, sw, sh
arguments is the sub-rectangle of the source img
image
dx, dy, dw, dh
arguments is the rectangle to draw into the destination context
drawString(text:String, x:Float, y:Float):Void
Draw a single line of text with the current color
, font
and fontSize
properties.
When drawing into rendertargets, you might have to use a different shader than the default one
- use the default shader when drawing into a transparent section of your rendertarget
- use a shader with alphaBlendSource = BlendOne
when drawing into a non-transparent section of your rendertarget