Cambiando printf por std::cout

This commit is contained in:
2022-12-05 10:07:27 +01:00
parent a32582f1ec
commit 5f263fa71d
7 changed files with 45 additions and 21 deletions

View File

@@ -1,5 +1,6 @@
#include "fade.h"
#include "const.h"
#include <iostream>
// Constructor
Fade::Fade(SDL_Renderer *renderer)
@@ -8,7 +9,9 @@ Fade::Fade(SDL_Renderer *renderer)
mBackbuffer = SDL_CreateTexture(mRenderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT);
if (mBackbuffer == nullptr)
printf("Backbuffer could not be created!\nSDL Error: %s\n", SDL_GetError());
{
std::cout << "Error: textTexture could not be created!\nSDL Error: " << SDL_GetError() << std::endl;
}
}
// Destructor