I have this code in draw event
draw_set_blend_mode( bm_add ); draw_set_alpha(m); draw_circle_color(mouse_x, mouse_y, r, c_white, c_black, 0); draw_set_blend_mode( bm_normal ); draw_set_alpha(1);
draw_text(10,10,"Alpha: "+string(m)); draw_text(10,20,"Radius: "+string(r));
in create I have set variable r=100 and m to 1. This sets the default radius to 100 and alpha to 1. Through a step event I control the alpha and radius using keyboard.
This worked fine in OGL1, OGL3, in DX9, the glow light circle does not show at all.
If I were to use draw_circle_color(mouse_x, mouse_y, r, c_white, c_black, 0); without the blend modes,
that would work in DX9, and display a white to black gradiant circle as it should.
So blend mode does not work in DX9 in ENIGMA.
Is this normal?
|