I just spent some time implementing a fading text window, and I have a suggestion.
Have a flag in DrawText allowing the opacity of the text to be set.
I have to manually create a surface, draw the source bitmap to that surface, draw the text, then draw that whole surface, with varying opacity, to the backbuffer.
Having an opacity feature in DrawText would prevent the creation of a surface and 1 blit on each render.
Might sounds like I'm lazy, but I assume that implementing opacity in DrawText would be much more efficient that what I'm doing.
Later!
Have a flag in DrawText allowing the opacity of the text to be set.
I have to manually create a surface, draw the source bitmap to that surface, draw the text, then draw that whole surface, with varying opacity, to the backbuffer.
Having an opacity feature in DrawText would prevent the creation of a surface and 1 blit on each render.
Might sounds like I'm lazy, but I assume that implementing opacity in DrawText would be much more efficient that what I'm doing.
Later!