gpu_get_alphatestref


描述

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).


语法:

gpu_get_alphatestref();


返回:

Real (from 0 - 255)


例如:

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.


上一页: GPU Functions
下一页: gpu_get_texfilter
© Copyright YoYo Games Ltd. 2018 All Rights Reserved