Sam Lantinga
Sam Lantinga
Oh, the documentation is wrong here. I'll fix that. It's intentional that it returns NULL if the preferred renderer isn't available, so that the application can try several, in order...
Because you can do this: ```c renderer = SDL_CreateRenderer("gpu"); if (!renderer) { renderer = SDL_CreateRenderer("opengles2"); } if (!renderer) { renderer = "SDL_CreateRenderer("direct3d"); } ```
Oh, you're right, I was conflating the two. Mmmm, I will reopen this for further thought.
Yep, that's what we do for video drivers, etc. I'll take a look.
We're not currently adding new functions to the SDL2 API. Please feel free to retarget this to main and provide a concrete use case for it, as well as clarification...
Can you provide a link to your example and the fonts you used?
Can you double check you were able to open your font? I don't see any error checking there. I changed your example to this: ```c TTF_Font *font = TTF_OpenFont("C:/Windows/Fonts/arial.ttf", 48);...
You don't check the return value of TTF_OpenFont(), are you sure the font is being loaded correctly?
On my system both of the DLLs you provide work.