-
Notifications
You must be signed in to change notification settings - Fork 0
/
gm82alpha.gml
30 lines (26 loc) · 998 Bytes
/
gm82alpha.gml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#define window_set_alphablend
///window_set_alphablend(enable)
//enable: enable alpha blending
//Allows the game to draw directly to the alpha channel of the aero window.
//Requires the Desktop Window Manager (DWM) to be enabled.
if (argument0) {
object_event_clear(gm82core_object,ev_alarm,0)
object_event_add(gm82core_object,ev_alarm,0,"
__gm82dx9_setalphabuffer(1)
__gm82alpha_setcomposite(window_handle(),1)
")
gm82core_object.alarm[0]=2
window_set_showborder(0)
} else {
__gm82dx9_setalphabuffer(0)
window_set_showborder(1)
}
#define window_set_chromakey
///window_set_chromakey(enable,color)
//enable: enable chroma key mode
//color: color to chroma key
//Enables experimental chroma key mode.
//Note: does not work in Windows 7 at the moment.
__gm82alpha_setchromakey(window_handle(),argument0,argument1)
//
//