mirror of
https://github.com/lov3b/Pong.git
synced 2025-01-18 12:40:12 +01:00
Print which renderer we're using
This commit is contained in:
parent
0c723545db
commit
37c0bc3297
@ -22,6 +22,10 @@ SdlWrapper::SdlWrapper(const char *const title, const SDL_Point screenSize, cons
|
||||
std::cerr << "Failed to create SDL_Renderer with error: " << SDL_GetError() << std::endl;
|
||||
exit(-1);
|
||||
}
|
||||
SDL_RendererInfo rendererInfo;
|
||||
if (SDL_GetRendererInfo(renderer, &rendererInfo) == 0) {
|
||||
std::cout << "Using renderer: " << rendererInfo.name << std::endl;
|
||||
}
|
||||
|
||||
SDL_RWops *ops = SDL_RWFromConstMem(icon, iconLength);
|
||||
if (ops == nullptr) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user