Stephane-D / SGDK

SGDK - A free and open development kit for the Sega Mega Drive
https://www.patreon.com/SGDK
MIT License
1.77k stars 189 forks source link

Add VDP_drawTextClear #367

Closed Lemur42332543632 closed 2 weeks ago

Lemur42332543632 commented 2 weeks ago

Clears the field of characters and draws new text.

If the new line is shorter than the one previously drawn in this place, the old characters will be removed. This function works significantly faster than calling VDP_clearText() and then VDP_drawText(). It is suitable when a lot of updating information needs to be displayed on the screen. I use it to output debugging information since I don't have the ability to use Gens KMod.

Stephane-D commented 2 weeks ago

Thanks for the contribution, I modified a bit the method to remove the 20 characters limitation.

D0NM commented 2 weeks ago

Ehh ))) I had to write my own funcs. T__T'

It's great to see @Stephane-D in a good working mood! Keep it up!