application_surface_is_enabled

Returns whether the application surface is enabled or not.

Syntax:

application_surface_is_enabled();


Returns: Boolean


Description

This function will return true if the application surface is being used for drawing, or false if the screen buffer is being used.


Example:

if keyboard_check_pressed(vk_space)
   {
   if application_surface_is_enabled()
      {
      application_surface_enable(false);
      }
   else
      {
      application_surface_enable(true);
      }
   }

The above code check for a key press and the toggle the application surface on or off depending on its state (like in an options menu).


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