gpu_get_zwriteenable


描述

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


语法:

gpu_get_zwriteenable();


返回:

Boolean(布尔值)


例如:

if gpu_get_zwriteenable() == false
   {
   gpu_set_zwriteenable(true);
   }

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


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