Mercurial > hg > dmlib
diff dmlib.h @ 234:a2abd0b991b6
Modularize line drawing related templates and functions, add clipping
functions to dmlib.h.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 08 Oct 2012 15:21:59 +0300 |
parents | 79dac918c81e |
children | 9d015d32841a |
line wrap: on
line diff
--- a/dmlib.h Mon Oct 08 09:01:16 2012 +0300 +++ b/dmlib.h Mon Oct 08 15:21:59 2012 +0300 @@ -272,6 +272,15 @@ #ifdef DM_GFX_LINES #define DM_HEADER #include "dmlinefunc.h" + +#define DM_CLIP_FUNC dmClipLineCoordsInt +#define DM_COORD_TYPE int +#include "dmlineclip.h" + +#define DM_CLIP_FUNC dmClipLineCoordsFloat +#define DM_COORD_TYPE DMFloat +#include "dmlineclip.h" + #undef DM_HEADER #endif