R
rnisson
Guest
Hello all,
I'm somewhat new to surfaces and am trying to draw a menu (normally generated manually every frame in the draw step from components like draw text, lines etc) to a surface once, save it as a sprite, and then just draw the surface to save processing time.
It works... mostly. I'm noticing the alpha of certain semi-transparent parts is off by a factor of about two, even with the exact same draw code, and certain things aren't the same brightness or thickness. Also, I notice different results depending on if I do
draw_clear_alpha(c_black, 0);
or
draw_clear_alpha(c_white, 0);
which sort of makes sense as it will affect blending. Again, I just want to produce the exact same result as drawing normally in the draw step, but save it as a sprite so I don't have to do it every frame...
I know this probably has something to do with blend modes, but I am confused why this even matters because I am starting from a totally blank cleared surface. Any help would be greatly appreciated!
I'm somewhat new to surfaces and am trying to draw a menu (normally generated manually every frame in the draw step from components like draw text, lines etc) to a surface once, save it as a sprite, and then just draw the surface to save processing time.
It works... mostly. I'm noticing the alpha of certain semi-transparent parts is off by a factor of about two, even with the exact same draw code, and certain things aren't the same brightness or thickness. Also, I notice different results depending on if I do
draw_clear_alpha(c_black, 0);
or
draw_clear_alpha(c_white, 0);
which sort of makes sense as it will affect blending. Again, I just want to produce the exact same result as drawing normally in the draw step, but save it as a sprite so I don't have to do it every frame...
I know this probably has something to do with blend modes, but I am confused why this even matters because I am starting from a totally blank cleared surface. Any help would be greatly appreciated!