pixels.h 441 Bytes
Newer Older
Dave Griffiths's avatar
Dave Griffiths committed
1
2
3
#include <png.h>
#include "engine/importgl.h"

Dave Griffiths's avatar
Dave Griffiths committed
4
#ifdef HAVE_LIBJPEG
Dave Griffiths's avatar
Dave Griffiths committed
5
6
7
8
9
10
11
12
extern "C"
{
#include <jpeglib.h>
}
#endif

GLubyte *GetScreenBuffer(int x, int y, unsigned int width, unsigned int height, int super);
unsigned char* LoadPNG(const string filename,long &width, long &height);
Dave Griffiths's avatar
Dave Griffiths committed
13
#ifdef HAVE_LIBJPEG
Dave Griffiths's avatar
Dave Griffiths committed
14
15
int WriteJPG(GLubyte *image, const char *filename, const char *description, int x, int y, int width, int height, int quality, int super);
#endif