summaryrefslogtreecommitdiffstats
path: root/source/opendingux/imageio.h
blob: b9e4a534f6748e3aab50e711a0323e8ec6c291b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef IMAGEIO_H
#define IMAGEIO_H

#include <stdint.h>
#include <SDL.h>

struct SDL_Surface;

/** Loads an image from a PNG file into a newly allocated 32bpp RGBA surface.
  */
SDL_Surface *loadPNG(const char* Path, uint32_t MaxWidth, uint32_t MaxHeight);

#endif