gpu-gles from psx4m
[pcsx_rearmed.git] / plugins / gpu-gles / gpuStdafx.h
1 /***************************************************************************\r
2                           stdafx.h  -  description\r
3                              -------------------\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
8 \r
9 /***************************************************************************\r
10  *                                                                         *\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
16  *                                                                         *\r
17  ***************************************************************************/\r
18 \r
19 //*************************************************************************// \r
20 // History of changes:\r
21 //\r
22 // 2009/03/08 - Pete  \r
23 // - generic cleanup for the Peops release\r
24 //\r
25 //*************************************************************************// \r
26 \r
27 #ifndef __GPU_STDAFX__\r
28 #define __GPU_STDAFX__\r
29 \r
30 #ifdef __cplusplus\r
31 extern "C" {\r
32 #endif\r
33 \r
34 \r
35         \r
36         \r
37         \r
38         // maybe we should remove this? \r
39 #ifdef _WINDOWS\r
40 \r
41 #define _CRT_SECURE_NO_WARNINGS\r
42 \r
43 #include <WINDOWS.H>\r
44 #include <WINDOWSX.H>\r
45 #include <Ts8.H>\r
46 #include "resource.h"\r
47 \r
48 #pragma warning (disable:4244)\r
49 \r
50 #include <gl/gl.h>\r
51 \r
52 #else\r
53 /*\r
54 #define __X11_C_\r
55 */\r
56 \r
57 #include <stdio.h>\r
58 #include <stdlib.h>\r
59 #include <string.h>\r
60 #include <sys/time.h>\r
61 #ifdef __NANOGL__\r
62 #include <gl/gl.h>\r
63 #else\r
64 #ifdef SOFT_LINKAGE\r
65 #pragma softfp_linkage\r
66 #endif\r
67 #ifdef MAEMO_CHANGES\r
68         #include <GLES/glplatform.h>\r
69         #include <GLES/gl.h>\r
70         #include <GLES/glext.h>\r
71         #include <EGL/egl.h>\r
72 #else\r
73         #include <gles/gl.h> // for opengl es types \r
74         #include <gles/egltypes.h>\r
75 #endif\r
76 #ifdef SOFT_LINKAGE\r
77 #pragma no_softfp_linkage\r
78 #endif\r
79 #endif\r
80 #include <math.h> \r
81 \r
82 #define __inline inline\r
83 \r
84 #endif\r
85 \r
86 #define SHADETEXBIT(x) ((x>>24) & 0x1)\r
87 #define SEMITRANSBIT(x) ((x>>25) & 0x1)\r
88 \r
89 #ifndef _WINDOWS\r
90 #ifndef GL_BGRA_EXT\r
91 #define GL_BGRA_EXT GL_RGBA\r
92 #endif\r
93 #endif\r
94 \r
95 #ifdef __cplusplus\r
96 }\r
97 #endif\r
98 \r
99 #endif\r