print sdl render

This commit is contained in:
Green Sky 2024-03-05 12:53:14 +01:00
parent db54afd180
commit 459ccf7d6b
No known key found for this signature in database

View File

@ -51,6 +51,12 @@ int main(int argc, char** argv) {
std::cerr << "SDL_CreateRenderer failed (" << SDL_GetError() << ")\n";
return 1;
}
{
SDL_RendererInfo ri;
if (SDL_GetRendererInfo(renderer.get(), &ri) == 0) {
std::cout << "SDL Renderer: " << ri.name << "(f:" << ri.flags << ")\n";
}
}
IMGUI_CHECKVERSION();
ImGui::CreateContext();