Mercurial > hg > dmlib
annotate src/dmimage.h @ 1557:5e5f75b45f8d
Initial port to SDL2. Many things will not work now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 May 2018 06:00:50 +0300 |
parents | 7f20f611c241 |
children | 7a2337dcd1b3 |
rev | line source |
---|---|
0 | 1 /* |
2 * DMLib | |
3 * -- Bitmap image conversion and loading | |
4 * Programmed and designed by Matti 'ccr' Hamalainen | |
1270 | 5 * (C) Copyright 2012-2015 Tecnic Software productions (TNSP) |
0 | 6 */ |
7 #ifndef DMIMAGE_H | |
8 #define DMIMAGE_H | |
9 | |
10 #include "dmlib.h" | |
11 #include "dmres.h" | |
12 | |
13 #ifdef __cplusplus | |
14 extern "C" { | |
15 #endif | |
16 | |
17 | |
18 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); | |
19 SDL_Surface *dmCreatePaletteSurfaceFrom(void *data, const int width, const int height, const int pitch); | |
20 SDL_Surface *dmLoadImage(DMResource *file); | |
1557
5e5f75b45f8d
Initial port to SDL2. Many things will not work now.
Matti Hamalainen <ccr@tnsp.org>
parents:
1270
diff
changeset
|
21 SDL_Texture *dmLoadImageToTexture(DMResource *file, SDL_Renderer *renderer); |
0 | 22 |
23 | |
24 #ifdef __cplusplus | |
25 } | |
26 #endif | |
27 | |
28 #endif // DMIMAGE_H |