gpu_get_alphatestenable


描述

With this function you can check to see whether alpha testing is enabled (returns true) or not (returns false). For more information on alpha testing, see the function gpu_set_alphatestref.


语法:

gpu_get_alphatestenable();


返回:

Boolean(布尔值)


例如:

if !gpu_get_alphatestenable()
   {
   gpu_set_alphatestenable(true);
   gpu_set_alphatestref(128);
   }

The above code will check to see if alpha testing is enabled and if not it will switch on alpha testing and set the test threshold to 128 (only pixels with an alpha over 0.5 will be drawn).


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