1 /***************************************************************************
\r
2 stdafx.h - description
\r
4 begin : Sun Mar 08 2009
\r
5 copyright : (C) 1999-2009 by Pete Bernert
\r
6 web : www.pbernert.com
\r
7 ***************************************************************************/
\r
9 /***************************************************************************
\r
11 * This program is free software; you can redistribute it and/or modify *
\r
12 * it under the terms of the GNU General Public License as published by *
\r
13 * the Free Software Foundation; either version 2 of the License, or *
\r
14 * (at your option) any later version. See also the license.txt file for *
\r
15 * additional informations. *
\r
17 ***************************************************************************/
\r
19 //*************************************************************************//
\r
20 // History of changes:
\r
22 // 2009/03/08 - Pete
\r
23 // - generic cleanup for the Peops release
\r
25 //*************************************************************************//
\r
27 #ifndef __GPU_STDAFX__
\r
28 #define __GPU_STDAFX__
\r
40 // maybe we should remove this?
\r
43 #define _CRT_SECURE_NO_WARNINGS
\r
45 #include <WINDOWS.H>
\r
46 #include <WINDOWSX.H>
\r
48 #include "resource.h"
\r
50 #pragma warning (disable:4244)
\r
62 #include <sys/time.h>
\r
67 #pragma softfp_linkage
\r
69 #include <GLES/gl.h> // for opengl es types
\r
70 //#include <GLES/egltypes.h>
\r
71 #include <EGL/egl.h>
\r
73 #pragma no_softfp_linkage
\r
78 #define __inline inline
\r
82 #define SHADETEXBIT(x) ((x>>24) & 0x1)
\r
83 #define SEMITRANSBIT(x) ((x>>25) & 0x1)
\r
86 #define glError() { \
\r
87 GLenum err = glGetError(); \
\r
88 while (err != GL_NO_ERROR) { \
\r
89 printf("glError: %d caught at %s:%u\n", err, __FILE__, __LINE__); \
\r
90 err = glGetError(); \
\r