gpu_get_alphatestref


Description

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


Syntax:

gpu_get_alphatestref();


Returns:

Real (from 0 - 255)


Example:

if gpu_get_alphatestenable()
   {
   if gpu_get_alphatestref() < 254
      {
      gpu_set_alphatestref(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: GPU Functions
Next: gpu_get_texfilter
© Copyright YoYo Games Ltd. 2018 All Rights Reserved