gpu_get_zfunc


描述

This function can be used to retrieve the z comparison mode. The value returned will be one of the following constants (the default value is cmpfunc_lessequal):


语法:

gpu_get_zfunc();


Returns:

Constant (see table above)


例如:

if gpu_get_zfunc() != cmpfunc_greater
   {
   gpu_set_zfunc(cmpfunc_greater);
   }

The above code checks to see if the z-testing method is set to cmpfunc_greater and if not then it is set to that constant.


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