gpu_get_zfunc


Description

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


Syntax:

gpu_get_zfunc();


Returns:

Constant (see table above)


Example:

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.


Back: GPU Functions
Next: gpu_get_zwriteenable
© Copyright YoYo Games Ltd. 2018 All Rights Reserved