application_surface_draw_enable

Enable or disable the automatic drawing of the application surface.

Syntax:

application_surface_draw_enable(flag);


Argument Description
flag The flag will be either true (enabled, the default value) or false (disabled).


Returns: N/A


Description

You can use this function to enable or disable the automatic drawing of the application surface. By default this is enabled, but in many cases you will want to take over when and how the surface is drawn (when using shaders for example), in which case you would use this function to set it to false so that you can draw it yourself when and how you require.


Example:

application_surface_draw_enable(false);

The above code will switch off the automatic drawing of the application surface.


Back: Surfaces
Next: application_surface
© Copyright YoYo Games Ltd. 2018 All Rights Reserved