diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-02 20:26:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-03 23:53:31 +0300 |
commit | 8340a5b04420d2c456618245371cc6e268e5fa5d (patch) | |
tree | 5820375efeb8f522aaa9dd175300715883d20b46 /src/resources/sdlgfxblitfunc.h | |
parent | 4b41e05deeef6927863601205dd7a0b5563e803a (diff) | |
download | plus-8340a5b04420d2c456618245371cc6e268e5fa5d.tar.gz plus-8340a5b04420d2c456618245371cc6e268e5fa5d.tar.bz2 plus-8340a5b04420d2c456618245371cc6e268e5fa5d.tar.xz plus-8340a5b04420d2c456618245371cc6e268e5fa5d.zip |
Add custom image to image blit function based on fuction from sdl_gfx SDL_gfxBlitRGBA.
Diffstat (limited to 'src/resources/sdlgfxblitfunc.h')
-rw-r--r-- | src/resources/sdlgfxblitfunc.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/resources/sdlgfxblitfunc.h b/src/resources/sdlgfxblitfunc.h new file mode 100644 index 000000000..dcf59fdca --- /dev/null +++ b/src/resources/sdlgfxblitfunc.h @@ -0,0 +1,42 @@ +/* + * The ManaPlus Client + * Copyright (C) 2017 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/* + +SDL_gfxBlitFunc: custom blitters (part of SDL_gfx library) + +LGPL (c) A. Schiffler + +*/ + +#ifndef RESOURCE_SDLGFXBLITFUNC_H +#define RESOURCE_SDLGFXBLITFUNC_H + +struct SDL_Surface; +struct SDL_Rect; + +// src surface can be any format (most time 32 bit surface with any masks) +// dst surface always correct 32 sufraces (shared format for all) +int SDLgfxBlitRGBA(SDL_Surface *src, + SDL_Rect *srcrect, + SDL_Surface *dst, + SDL_Rect *dstrect); + +#endif // RESOURCE_SDLGFXBLITFUNC_H |