andev
Member
This is what I'm getting when I try to subtract text from a surface:
If I mess with my alpha settings, I get this:
Which tells me the entire bounding box is being subtracted?
PRE-EDIT: While I was writing this topic, I thought I'd just try putting
and that did half of it. But pixel interpolation was gone, which I managed to fix by using bm_normal instead of bm_add for normal drawing:
Yay interpolation, but alas, further problems. I fixed this one by messing around with where I put the equivalent draw_set_alpha_test(0); after it was enabled, which left me with:
And the final fix to that is to draw the text in black instead of white? Not sure why it works but it's probably something to do with bm_subtract inverting things.
Result!
Just posting in case someone else finds this useful!
If I mess with my alpha settings, I get this:
Which tells me the entire bounding box is being subtracted?
PRE-EDIT: While I was writing this topic, I thought I'd just try putting
Code:
draw_set_alpha_test(1);
and that did half of it. But pixel interpolation was gone, which I managed to fix by using bm_normal instead of bm_add for normal drawing:
Yay interpolation, but alas, further problems. I fixed this one by messing around with where I put the equivalent draw_set_alpha_test(0); after it was enabled, which left me with:
And the final fix to that is to draw the text in black instead of white? Not sure why it works but it's probably something to do with bm_subtract inverting things.
Result!
Just posting in case someone else finds this useful!