Mercurial > hg > dmlib
diff src/dmimage.h @ 812:1e5cf1144f36
Move library source under src/ subdirectory.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 16 May 2014 03:22:39 +0300 |
parents | dmimage.h@32250b436bca |
children | 7f20f611c241 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/dmimage.h Fri May 16 03:22:39 2014 +0300 @@ -0,0 +1,27 @@ +/* + * DMLib + * -- Bitmap image conversion and loading + * Programmed and designed by Matti 'ccr' Hamalainen + * (C) Copyright 2012 Tecnic Software productions (TNSP) + */ +#ifndef DMIMAGE_H +#define DMIMAGE_H + +#include "dmlib.h" +#include "dmres.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +SDL_Surface *dmCreateRGBSurfaceFrom(void *data, const int width, const int height, const int depth, const int pitch, const int rmask, const int gmask, const int bmask, const int amask); +SDL_Surface *dmCreatePaletteSurfaceFrom(void *data, const int width, const int height, const int pitch); +SDL_Surface *dmLoadImage(DMResource *file); + + +#ifdef __cplusplus +} +#endif + +#endif // DMIMAGE_H