00001 #ifndef SDLGLUTILS_H
00002 #define SDLGLUTILS_H
00003
00004 #include <SDL.h>
00005 #include <Windows.h>
00006 #include <WinGDI.h>
00007 #include "includeGL.h"
00008
00009 #ifndef GL_CLAMP_TO_EDGE
00010 #define GL_CLAMP_TO_EDGE 0x812F
00011 #endif
00012
00013 GLuint loadTexture(const char * filename,bool useMipMap = true);
00014 int takeScreenshot(const char * filename);
00015 void drawAxis(double scale = 1);
00016 int initFullScreen(unsigned int * width = NULL,unsigned int * height = NULL);
00017 int XPMFromImage(const char * imagefile, const char * XPMfile);
00018 SDL_Cursor * cursorFromXPM(const char * xpm[]);
00019
00020 #endif //SDLGLUTILS_H