Hey everyone I was wondering how I would clear a surface from the screen with SDL.
Here is my CGame class which runs the core function of the game. I wrote the Tic Tac Toe game really sloppy but I will be improving this later, wrote this in like 10 minutes. Wouldn't let me post my whole class to big sorry everyone
Here is where I want to reset the game board surface
Haven't you loaded the background image already? No point doing that again. Just draw the background on to the screen. CResourceManager::applySurface(background, screen);
It only works if I reload the image with my loadImage function. If I just draw it to the screen again it doesn't clear the background of the X's and O's.
So if I load the background surface to the old background image it clears it and don't need to draw it again cause i'm looping through it in my main class.