Mercurial > hg > dmlib
view dmimage.h @ 539:8d7b6fecbb24
Change filename extension of DrazPaint 2.0 packed format to avoid conflict with the unpacked format while allowing the user to selecto output format via extension.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 22 Nov 2012 22:19:12 +0200 |
parents | 32250b436bca |
children |
line wrap: on
line source
/* * 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