gpu-gles from psx4m
[pcsx_rearmed.git] / plugins / gpu-gles / gpuDraw.h
diff --git a/plugins/gpu-gles/gpuDraw.h b/plugins/gpu-gles/gpuDraw.h
new file mode 100644 (file)
index 0000000..f5f0426
--- /dev/null
@@ -0,0 +1,83 @@
+/***************************************************************************\r
+                            draw.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 _GL_DRAW_H_\r
+#define _GL_DRAW_H_\r
+\r
+\r
+#ifdef __cplusplus\r
+\r
+extern "C" {\r
+#endif\r
+       \r
+#include "minimal.h"\r
+#include <gdk/gdkx.h>\r
+\r
+// internally used defines\r
+\r
+#define GPUCOMMAND(x) ((x>>24) & 0xff)\r
+#define RED(x) (x & 0xff)\r
+#define BLUE(x) ((x>>16) & 0xff)\r
+#define GREEN(x) ((x>>8) & 0xff)\r
+#define COLOR(x) (x & 0xffffff)\r
+\r
+// prototypes\r
+\r
+#ifdef _WINDOWS\r
+BOOL bSetupPixelFormat(HDC hDC);\r
+#endif\r
+\r
+int  GLinitialize();\r
+void GLcleanup();\r
+#ifdef _WINDOWS\r
+BOOL offset2(void);\r
+BOOL offset3(void);\r
+BOOL offset4(void);\r
+BOOL offsetline(void);\r
+#else\r
+unsigned short offset2(void);\r
+unsigned short offset3(void);\r
+unsigned short offset4(void);\r
+unsigned short offsetline(void);\r
+#endif\r
+void offsetST(void);\r
+void offsetBlk(void);\r
+void offsetScreenUpload(long Position);\r
+void assignTexture3(void);\r
+void assignTexture4(void);\r
+void assignTextureSprite(void);\r
+void assignTextureVRAMWrite(void);\r
+void SetOGLDisplaySettings (unsigned short DisplaySet);\r
+void ReadConfig(void);\r
+void WriteConfig(void);\r
+void SetExtGLFuncs(void);\r
+///////////////////////////////////////////////////////////////////////\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif // _GL_DRAW_H_\r