1 |
function scr_draw_set_mask(arg0) |
2 |
{ |
3 |
if (!instance_exists(obj_growtangle)) |
4 |
exit; |
5 |
gpu_set_blendenable(false); |
6 |
gpu_set_colorwriteenable(false, false, false, true); |
7 |
draw_set_alpha(0); |
8 |
if (arg0) |
9 |
{ |
10 |
draw_rectangle(camerax(), cameray(), camerax() + 640, cameray() + 480, false); |
11 |
draw_set_alpha(1); |
12 |
} |
13 |
} |
14 |
|
15 |
function scr_draw_in_mask_begin() |
16 |
{ |
17 |
draw_set_alpha(1); |
18 |
gpu_set_blendenable(true); |
19 |
gpu_set_colorwriteenable(true, true, true, true); |
20 |
gpu_set_blendmode_ext(7, bm_inv_dest_alpha); |
21 |
gpu_set_alphatestenable(true); |
22 |
gpu_set_alphatestref(1); |
23 |
} |