decouple input/frame limiter from GPU plugin
[pcsx_rearmed.git] / plugins / dfxvideo / gpu.h
CommitLineData
ef79bbde
P
1/***************************************************************************
2 gpu.h - description
3 -------------------
4 begin : Sun Oct 28 2001
5 copyright : (C) 2001 by Pete Bernert
6 email : BlackDove@addcom.de
7 ***************************************************************************/
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. See also the license.txt file for *
14 * additional informations. *
15 * *
16 ***************************************************************************/
17
18#ifndef _GPU_INTERNALS_H
19#define _GPU_INTERNALS_H
20
21#define OPAQUEON 10
22#define OPAQUEOFF 11
23
24#define KEY_RESETTEXSTORE 1
25#define KEY_SHOWFPS 2
26#define KEY_RESETOPAQUE 4
27#define KEY_RESETDITHER 8
28#define KEY_RESETFILTER 16
29#define KEY_RESETADVBLEND 32
30//#define KEY_BLACKWHITE 64
31#define KEY_BADTEXTURES 128
32#define KEY_CHECKTHISOUT 256
33
34#if !defined(__BIG_ENDIAN__) || defined(__x86_64__) || defined(__i386__)
35#ifndef __LITTLE_ENDIAN__
36#define __LITTLE_ENDIAN__
37#endif
38#endif
39
40#ifdef __LITTLE_ENDIAN__
41#define RED(x) (x & 0xff)
42#define BLUE(x) ((x>>16) & 0xff)
43#define GREEN(x) ((x>>8) & 0xff)
44#define COLOR(x) (x & 0xffffff)
45#elif defined __BIG_ENDIAN__
46#define RED(x) ((x>>24) & 0xff)
47#define BLUE(x) ((x>>8) & 0xff)
48#define GREEN(x) ((x>>16) & 0xff)
49#define COLOR(x) SWAP32(x & 0xffffff)
50#endif
51
52/////////////////////////////////////////////////////////////////////////////
53
54void updateDisplay(void);
55void SetAutoFrameCap(void);
56void SetFixes(void);
57
58/////////////////////////////////////////////////////////////////////////////
59
60#endif // _GPU_INTERNALS_H