Add ClearSurface()

This is a function that does what it says - it clears the given surface.
This just means doing a FillRect(), but it's better to use this function
because it conveys intent better.
This commit is contained in:
Misa
2021-02-25 15:26:12 -08:00
committed by Ethan Lee
parent 994f47e7d8
commit 163b85d206
2 changed files with 7 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ void FillRect( SDL_Surface* surface, SDL_Rect& rect, const int r, int g, int b )
void FillRect( SDL_Surface* surface, SDL_Rect rect, int rgba );
void ClearSurface(SDL_Surface* surface);
void ScrollSurface(SDL_Surface* _src, int pX, int py);
SDL_Surface * FlipSurfaceVerticle(SDL_Surface* _src);