view src/dmimage.h @ 1531:260bf529a8f2

Implement current len/offs push/pop for growbuf.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 12 May 2018 03:23:32 +0300
parents 7f20f611c241
children 5e5f75b45f8d
line wrap: on
line source

/*
 * DMLib
 * -- Bitmap image conversion and loading
 * Programmed and designed by Matti 'ccr' Hamalainen
 * (C) Copyright 2012-2015 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