pcsxr-1.9.92
[pcsx_rearmed.git] / plugins / peopsxgl / gpu.h
1 /***************************************************************************\r
2                             gpu.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 #ifndef _GPU_INTERNALS_H\r
20 #define _GPU_INTERNALS_H\r
21 \r
22 #define PRED(x)   ((x << 3) & 0xF8)\r
23 #define PBLUE(x)  ((x >> 2) & 0xF8)\r
24 #define PGREEN(x) ((x >> 7) & 0xF8)\r
25 \r
26 #define RED(x) (x & 0xff)\r
27 #define BLUE(x) ((x>>16) & 0xff)\r
28 #define GREEN(x) ((x>>8) & 0xff)\r
29 #define COLOR(x) (x & 0xffffff)\r
30 \r
31 void           DoSnapShot(void);\r
32 void           updateDisplay(void);\r
33 void           updateFrontDisplay(void);\r
34 void           SetAutoFrameCap(void);\r
35 void           SetAspectRatio(void);\r
36 void           CheckVRamRead(int x, int y, int dx, int dy,BOOL bFront);\r
37 void           CheckVRamReadEx(int x, int y, int dx, int dy);\r
38 void           SetFixes(void);\r
39 \r
40 #endif // _GPU_INTERNALS_H\r