forked from jd-code/exposit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphutils.h
60 lines (50 loc) · 2.24 KB
/
graphutils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* $Id: graphutils.h 389 2004-07-10 13:45:21Z jd $
* GrapeFruit Copyright (C) 2002,2003 Cristelle Barillon & Jean-Daniel Pauget
* a whole set of graphical utilities for SDL
* Exposit Copyright (C) 2009,2010 Cristelle Barillon & Jean-Daniel Pauget
* efficiently stacking astro pics
*
* [email protected] - http://grapefruit.disjunkt.com/
* [email protected] - http://exposit.disjunkt.com/
*
* 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 (at your option) 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* you can also try the web at http://www.gnu.org/
*
*/
#ifndef GRAPHUTILS_H_INC
#define GRAPHUTILS_H_INC
#include "SDL.h"
#ifdef __cplusplus
extern "C" {
namespace grapefruit {
#endif
void SDLF_putpixel (SDL_Surface *surface, int x, int y, Uint32 pixel);
void line (SDL_Surface *Sdest, int x1, int y1, int x2, int y2, Uint32 pixel);
void SDLF_putstr (SDL_Surface *surface, int x, int y, Uint32 pixel, const char *texte);
void SDLF_putstrA (SDL_Surface *surface, int x, int y, Uint32 pixel, const char *texte);
SDL_Surface *SDL_CreateMimicSurface(Uint32 flags, int width, int height, SDL_Surface const * from);
SDL_Surface *Create32bSurface (Uint32 flags, int width, int height);
void MultAlpha (SDL_Surface *s, Uint32 m);
SDL_Surface *ShadowAlpha (Uint32 flags, SDL_Surface const * from, Uint32 m);
void BrightToAlpha (SDL_Surface *s);
void AlphaMaxBlit (SDL_Surface const * from, SDL_Surface *dest, SDL_Rect * rdst);
void ShadowBlit (SDL_Surface const * from, SDL_Surface *dest);
#ifdef __cplusplus
} /* closing the 'namespace grapefruit {' above... */
} /* closing the 'extern "C" {' above... */
#endif
#endif /* GRAPHUTILS_H_INC */