gpu_get_ztestenable


描述

This function can be used to retrieve whether z-testing is enabled (the function returns true) or not (the function returns false). The default value is that z-testing is disabled, so the function will return false.


语法:

gpu_get_ztestenable();


Returns:

Boolean


例如:

if gpu_get_ztestenable() == false
   {
   gpu_set_ztestenable(true);
   }

The above code checks to see if z-testing is enabled or not and if it is disabled it is then enabled again.


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