draw_get_lighting


Description

This function will return whether lighting is enabled ( true) or not (false) for the whole scene.


Syntax:

draw_get_lighting()


Returns:

Boolean


Example:

if !draw_get_lighting()
   {
   draw_set_lighting(true);
   }

The above code will check to see if lighting is enabled for the scene, and if not it enables it.


Back: Drawing And The Display
Next: draw_light_define_ambient
© Copyright YoYo Games Ltd. 2018 All Rights Reserved