Hello there,
I am new to game development using SDL3 and am building a simple pong game without using any renderers but simple surfaces and rectangles. Just wanted to know if it’s possible to put text on the surface using SDL_ttf, without a renderer? The game is built with a proper scoring system, but I want to show the scores on the screen and here’s where I am stuck. Most of the tutorials on text involve the use of renderers to render them on the surface. Please help.
All the functions starting with TTF_Render (such as TTF_RenderText_Blended) can be used to draw text onto a new surface.
You can also use TTF_DrawSurfaceText to draw text onto an existing surface.