#include <SDL2/SDL.h>
#include "SDL_test_common.h"
#if defined(__IPHONEOS__) || defined(__ANDROID__)
#define HAVE_OPENGLES
#endif
#ifdef HAVE_OPENGLES
#include "SDL_opengles.h"
SDL_Window *Window=NULL;
SDL_Renderer*screen =NULL;
int main()
{
SDL_Init (SDL_INIT_EVERYTHING );
Window=SDL_CreateWindow( "SDL",0,0,960,540,SDL_WINDOW_OPENGL|SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS);
screen=SDL_CreateRenderer(Window, -1, SDL_RENDERER_PRESENTVSYNC);
glClearColor(1.0, 0.0, 0.0, 0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
SDL_RenderPresent(screen);
SDL_Delay(90000);
SDL_Quit();
}
#else /* HAVE_OPENGLES */
int main(int argc, char *argv[])
{
printf("No OpenGL ES support on this system\n");
return 1;
}
#endif /* HAVE_OPENGLES */