gpu-gles from psx4m
[pcsx_rearmed.git] / plugins / gpu-gles / gpuDraw.h
CommitLineData
ce879073 1/***************************************************************************\r
2 draw.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 _GL_DRAW_H_\r
28#define _GL_DRAW_H_\r
29\r
30\r
31#ifdef __cplusplus\r
32\r
33extern "C" {\r
34#endif\r
35 \r
36#include "minimal.h"\r
37#include <gdk/gdkx.h>\r
38\r
39// internally used defines\r
40\r
41#define GPUCOMMAND(x) ((x>>24) & 0xff)\r
42#define RED(x) (x & 0xff)\r
43#define BLUE(x) ((x>>16) & 0xff)\r
44#define GREEN(x) ((x>>8) & 0xff)\r
45#define COLOR(x) (x & 0xffffff)\r
46\r
47// prototypes\r
48\r
49#ifdef _WINDOWS\r
50BOOL bSetupPixelFormat(HDC hDC);\r
51#endif\r
52\r
53int GLinitialize();\r
54void GLcleanup();\r
55#ifdef _WINDOWS\r
56BOOL offset2(void);\r
57BOOL offset3(void);\r
58BOOL offset4(void);\r
59BOOL offsetline(void);\r
60#else\r
61unsigned short offset2(void);\r
62unsigned short offset3(void);\r
63unsigned short offset4(void);\r
64unsigned short offsetline(void);\r
65#endif\r
66void offsetST(void);\r
67void offsetBlk(void);\r
68void offsetScreenUpload(long Position);\r
69void assignTexture3(void);\r
70void assignTexture4(void);\r
71void assignTextureSprite(void);\r
72void assignTextureVRAMWrite(void);\r
73void SetOGLDisplaySettings (unsigned short DisplaySet);\r
74void ReadConfig(void);\r
75void WriteConfig(void);\r
76void SetExtGLFuncs(void);\r
77///////////////////////////////////////////////////////////////////////\r
78\r
79#ifdef __cplusplus\r
80}\r
81#endif\r
82\r
83#endif // _GL_DRAW_H_\r