gpu_get_colorwriteenable


描述

This function can be used to retrieve the current colour write-enable values. The function returns a 4 element 1D array with the following elements in it which will be either true (enabled) or false (disabled). By default all colour writing is set to true:


语法:

gpu_get_colorwriteenable();


返回:

4 element 1D array (See above for details)


例如:

var cw = gpu_get_colorwriteenable();
cw[3] = false;
gpu_set_colorwriteenable(cw);

The above code gets the current colour write values and then sets the alpha component to false.


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