Mercurial > hg > dmlib
annotate src/dmimage.h @ 2031:4109967ef832
Merge.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 27 Nov 2018 12:21:06 +0200 |
parents | 7a2337dcd1b3 |
children |
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 | |
1560
7a2337dcd1b3
Cleanup some remnants of SDL1 code.
Matti Hamalainen <ccr@tnsp.org>
parents:
1557
diff
changeset
|
18 SDL_Surface *dmCreateRGBSurfaceFrom(void *data, const int width, const int height, const int depth, const int pitch, const Uint32 format); |
0 | 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 |