draw_get_alpha_test_ref_value

Returns the current alpha testing reference value.

Syntax:

draw_get_alpha_test_ref_value();


Returns: Real


Description

You can use this function to find the current value for the alpha test reference (default is 0, but you can use draw_set_alpha_test_ref_value to set this value to something other than this).


Example:

if draw_get_alpha_test()
   {
   if draw_get_alpha_test_ref_value() < 254
      {
      draw_set_alpha_test_ref_value(254);
      }
   }

The above code checks to see if alpha testing is enabled, and if it is, it then checks the current alpha test reference value and sets it if it is less than 254.


Back: Drawing
Next: draw_enable_alphablend
© Copyright YoYo Games Ltd. 2018 All Rights Reserved