draw_enable_swf_aa

Enable or disable anti-aliasing for SWF format vector sprites.

Syntax:

draw_enable_swf_aa(enable);


Argument Description
enable Enable (true) or disable (false) AA for all SWF sprites.


Returns: N/A


Description

With this function you can enable or disable anti-aliasing (AA) for SWF format vector sprites. AA simply smooths the edges of vector images to give them a nicer look. The amount of AA used will depend on the value set using the function draw_set_swf_aa_level(). By default this is disabled.


Example:

if draw_get_swf_aa_level() == 0
   {
   draw_enable_swf_aa(true);
   draw_set_swf_aa_level(0.5);
   }

The above code will check the AA value for SWF format sprites, and if it is 0 it enables AA and sets the value to 0.5.


Back: Drawing Sprites And Backgrounds
Next: draw_set_swf_aa_level
© Copyright YoYo Games Ltd. 2018 All Rights Reserved