gpu_get_colorwriteenable


Description

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:


Syntax:

gpu_get_colorwriteenable();


Returns:

4 element 1D array (See above for details)


Example:

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.


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