sgl

diff tests/simple/simple.c @ 40:f7de32814f34

sortof made the ios backend to compile and run ... sortof
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 28 Jun 2012 03:42:26 +0300
parents 124195562f7e
children
line diff
     1.1 --- a/tests/simple/simple.c	Wed Jun 27 05:54:57 2012 +0300
     1.2 +++ b/tests/simple/simple.c	Thu Jun 28 03:42:26 2012 +0300
     1.3 @@ -1,19 +1,11 @@
     1.4  #include <stdio.h>
     1.5  #include <ctype.h>
     1.6 -#ifdef WIN32
     1.7 -#include <windows.h>
     1.8 -#endif	/* WIN32 */
     1.9 -#ifndef __APPLE__
    1.10 -#include <GL/gl.h>
    1.11 -#else
    1.12 -#include <OpenGL/gl.h>
    1.13 -#endif
    1.14  #include "sgl.h"
    1.15  
    1.16  void disp(void);
    1.17  void reshape(int x, int y);
    1.18  void keyb(int key, int state);
    1.19 -void mouse(int pidx, int bn, int state, int x, int y);
    1.20 +void mouse(int pidx, int bn, int state, int x, int y)
    1.21  void motion(int pidx, int x, int y);
    1.22  
    1.23  
    1.24 @@ -44,6 +36,7 @@
    1.25  	glClearColor(0.2, 0.2, 0.2, 1);
    1.26  	glClear(GL_COLOR_BUFFER_BIT);
    1.27  
    1.28 +#ifndef GL_ES_VERSION_2_0
    1.29  	glBegin(GL_QUADS);
    1.30  	glColor3f(1, 0, 0);
    1.31  	glVertex2f(-1, -1);
    1.32 @@ -54,6 +47,7 @@
    1.33  	glColor3f(1, 1, 0);
    1.34  	glVertex2f(-1, 1);
    1.35  	glEnd();
    1.36 +#endif
    1.37  
    1.38  	sgl_swap_buffers();
    1.39  }