Add BlitSurfaceTinted()

This will be used to change the color of existing textures while
preserving their lightness values.
This commit is contained in:
Misa
2020-06-29 15:05:57 -07:00
committed by Ethan Lee
parent ebd381c228
commit 584f73f0a4
2 changed files with 72 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ void BlitSurfaceStandard( SDL_Surface* _src, SDL_Rect* _srcRect, SDL_Surface* _d
void BlitSurfaceColoured( SDL_Surface* _src, SDL_Rect* _srcRect, SDL_Surface* _dest, SDL_Rect* _destRect, colourTransform& ct );
void BlitSurfaceTinted( SDL_Surface* _src, SDL_Rect* _srcRect, SDL_Surface* _dest, SDL_Rect* _destRect, colourTransform& ct );
void FillRect( SDL_Surface* surface, const int x, const int y, const int w, const int h, const int r, int g, int b );
void FillRect( SDL_Surface* surface, const int r, int g, int b );