view src/dmimage.h @ 2349:463e5d9771ee

More build system work: change DMCONFIG Make variable to DM_CONFIG, and add option of setting it to value "no" which disables inclusion of "config.mak". Setting DM_CONFIG to any other non-empty value will include file with that name instead. Empty value will include default "config.mak".
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 29 Oct 2019 14:46:01 +0200
parents 7a2337dcd1b3
children
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 Uint32 format);
SDL_Surface *dmCreatePaletteSurfaceFrom(void *data, const int width, const int height, const int pitch);
SDL_Surface *dmLoadImage(DMResource *file);
SDL_Texture *dmLoadImageToTexture(DMResource *file, SDL_Renderer *renderer);


#ifdef __cplusplus
}
#endif

#endif // DMIMAGE_H