TTF#render_to (render text onto existing surface)
Reported by John Croisant | June 18th, 2008 @ 01:40 AM
Venut has suggested a way to render TTF text onto an existing Surface, so that a new Surface doesn't have to be created every time the text changes. (This is good for e.g. FPS displays, which change many times per second.)
We could add TTF#render_to, which would be like TTF#render, but take a Surface and Rect as well. SDL_TTF always creates a new Surface when rendering text, but we could blit and free it immediately, without creating a new ruby object for it.
UTF8 and Unicode variants would be added as well, of course.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Flexible library for making games with the Ruby language.
rubygame.sourceforge.net
