mirror of
				https://github.com/lov3b/Pong.git
				synced 2025-11-03 23:00:19 +01:00 
			
		
		
		
	Print which renderer we're using
This commit is contained in:
		@@ -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;
 | 
					        std::cerr << "Failed to create SDL_Renderer with error: " << SDL_GetError() << std::endl;
 | 
				
			||||||
        exit(-1);
 | 
					        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);
 | 
					    SDL_RWops *ops = SDL_RWFromConstMem(icon, iconLength);
 | 
				
			||||||
    if (ops == nullptr) {
 | 
					    if (ops == nullptr) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user