gpu-gles from psx4m
[pcsx_rearmed.git] / plugins / gpu-gles / gpuStdafx.h
diff --git a/plugins/gpu-gles/gpuStdafx.h b/plugins/gpu-gles/gpuStdafx.h
new file mode 100644 (file)
index 0000000..fc7ee3d
--- /dev/null
@@ -0,0 +1,99 @@
+/***************************************************************************\r
+                          stdafx.h  -  description\r
+                             -------------------\r
+    begin                : Sun Mar 08 2009\r
+    copyright            : (C) 1999-2009 by Pete Bernert\r
+    web                  : www.pbernert.com   \r
+ ***************************************************************************/\r
+\r
+/***************************************************************************\r
+ *                                                                         *\r
+ *   This program is free software; you can redistribute it and/or modify  *\r
+ *   it under the terms of the GNU General Public License as published by  *\r
+ *   the Free Software Foundation; either version 2 of the License, or     *\r
+ *   (at your option) any later version. See also the license.txt file for *\r
+ *   additional informations.                                              *\r
+ *                                                                         *\r
+ ***************************************************************************/\r
+\r
+//*************************************************************************// \r
+// History of changes:\r
+//\r
+// 2009/03/08 - Pete  \r
+// - generic cleanup for the Peops release\r
+//\r
+//*************************************************************************// \r
+\r
+#ifndef __GPU_STDAFX__\r
+#define __GPU_STDAFX__\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+\r
+       \r
+       \r
+       \r
+       // maybe we should remove this? \r
+#ifdef _WINDOWS\r
+\r
+#define _CRT_SECURE_NO_WARNINGS\r
+\r
+#include <WINDOWS.H>\r
+#include <WINDOWSX.H>\r
+#include <Ts8.H>\r
+#include "resource.h"\r
+\r
+#pragma warning (disable:4244)\r
+\r
+#include <gl/gl.h>\r
+\r
+#else\r
+/*\r
+#define __X11_C_\r
+*/\r
+\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+#include <string.h>\r
+#include <sys/time.h>\r
+#ifdef __NANOGL__\r
+#include <gl/gl.h>\r
+#else\r
+#ifdef SOFT_LINKAGE\r
+#pragma softfp_linkage\r
+#endif\r
+#ifdef MAEMO_CHANGES\r
+       #include <GLES/glplatform.h>\r
+       #include <GLES/gl.h>\r
+       #include <GLES/glext.h>\r
+       #include <EGL/egl.h>\r
+#else\r
+       #include <gles/gl.h> // for opengl es types \r
+       #include <gles/egltypes.h>\r
+#endif\r
+#ifdef SOFT_LINKAGE\r
+#pragma no_softfp_linkage\r
+#endif\r
+#endif\r
+#include <math.h> \r
+\r
+#define __inline inline\r
+\r
+#endif\r
+\r
+#define SHADETEXBIT(x) ((x>>24) & 0x1)\r
+#define SEMITRANSBIT(x) ((x>>25) & 0x1)\r
+\r
+#ifndef _WINDOWS\r
+#ifndef GL_BGRA_EXT\r
+#define GL_BGRA_EXT GL_RGBA\r
+#endif\r
+#endif\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif\r