1 |
function scr_draw_set_mask(argument0) //gml_Script_scr_draw_set_mask |
2 |
{ |
3 |
if (!instance_exists(obj_growtangle)) |
4 |
return; |
5 |
gpu_set_blendenable(false) |
6 |
gpu_set_colorwriteenable(false, false, false, true) |
7 |
draw_set_alpha(0) |
8 |
if argument0 |
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() //gml_Script_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(bm_dest_alpha, bm_inv_dest_alpha) |
21 |
gpu_set_alphatestenable(true) |
22 |
gpu_set_alphatestref(1) |
23 |
} |