print sdl render

This commit is contained in:
Green Sky 2024-03-05 12:53:14 +01:00
parent 8d5b619884
commit 34e8c003d0
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();