You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we get some more information on how to set up the SDL_Surface for this function? Is it supposed to be already created, and if so, how do we get the correct dimensions and pixel format for it? This feels rather obtuse to someone new to the library (like myself, for example!)
The text was updated successfully, but these errors were encountered:
If you just want to create a surface with text, you probably want to use the TTF_RenderText_* functions. TTF_DrawSurfaceText() is useful when you have an existing surface that you're doing other drawing on that you also want to add text to.
Uh oh!
There was an error while loading. Please reload this page.
Can we get some more information on how to set up the SDL_Surface for this function? Is it supposed to be already created, and if so, how do we get the correct dimensions and pixel format for it? This feels rather obtuse to someone new to the library (like myself, for example!)
The text was updated successfully, but these errors were encountered: