Mercurial > hg > dmlib
diff dmlib.h @ 232:79dac918c81e
Modularize line clipping etc. a lot, and export all line drawing and
blitting functions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 08 Oct 2012 09:01:05 +0300 |
parents | 0b2866e25bf1 |
children | a2abd0b991b6 |
line wrap: on
line diff
--- a/dmlib.h Mon Oct 08 06:44:35 2012 +0300 +++ b/dmlib.h Mon Oct 08 09:01:05 2012 +0300 @@ -270,9 +270,9 @@ /* Arbitrary line drawing */ #ifdef DM_GFX_LINES -typedef int (*DMDrawLineFunc)(SDL_Surface *src, int x0, int y0, int x1, int y1, const Uint32 color); -DMDrawLineFunc dmGetDrawLineFunc(SDL_PixelFormat *dst, int mode); -int dmDrawLineAny(SDL_Surface *src, int x0, int y0, int x1, int y1, const Uint32 color, int mode); +#define DM_HEADER +#include "dmlinefunc.h" +#undef DM_HEADER #endif @@ -280,18 +280,16 @@ */ #ifdef DM_GFX_BLITS typedef int (*DMScaledBlitFunc)(SDL_Surface *src, const int x0, const int y0, const int dwidth, const int dheight, SDL_Surface *dst); - DMScaledBlitFunc dmGetScaledBlitFunc(SDL_PixelFormat *src, SDL_PixelFormat *dst, int mode); int dmScaledBlitSurfaceAny(SDL_Surface *src, const int x0, const int y0, const int dwidth, const int dheight, SDL_Surface *dst, int mode); -int dmScaledBlitSurface32to32TransparentX(SDL_Surface *src, const int x0, const int y0, const int dwidth, const int dheight, SDL_Surface *dst); -int dmScaledBlitSurface32to32TransparentGA(SDL_Surface *src, const int x0, const int y0, const int dwidth, const int dheight, SDL_Surface *dst, Uint32 alpha); - - typedef int (*DMUnscaledBlitFunc)(SDL_Surface *src, const int x0, const int y0, SDL_Surface *dst); - DMUnscaledBlitFunc dmGetUnscaledBlitFunc(SDL_PixelFormat *src, SDL_PixelFormat *dst, int mode); int dmUnscaledBlitSurfaceAny(SDL_Surface *src, const int x0, const int y0, SDL_Surface *dst, int mode); + +#define DM_HEADER +#include "dmblitfunc.h" +#undef DM_HEADER #endif