25 #define SDL_MAIN_HANDLED
27 #include <SDL2/SDL_opengl.h>
29 #ifndef GRAPHICS_FUNCS_H
30 #define GRAPHICS_FUNCS_H
36 static QImage setAlphaMask(QImage image, QImage mask);
37 static QImage fromBMP(QString& file);
38 static QImage loadQImage(QString file);
39 static QPixmap squareImage(QPixmap image, QSize targetSize);
40 static SDL_Surface *QImage_toSDLSurface(
const QImage &sourceImage);
41 static void loadMaskedImage(QString rootDir, QString in_imgName, QString &out_maskName, QString &out_errStr,
PGE_Size* imgSize=0);
42 static QImage convertToGLFormat(
const QImage &img);
45 #endif // GRAPHICS_FUNCS_H
Definition: graphics_funcs.h:33