1 /***************************************************************************
4 begin : Sun Oct 28 2001
5 copyright : (C) 2001 by Pete Bernert
6 email : BlackDove@addcom.de
7 ***************************************************************************/
8 /***************************************************************************
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. *
16 ***************************************************************************/
18 #ifndef _GPU_INTERNALS_H
19 #define _GPU_INTERNALS_H
24 #define KEY_RESETTEXSTORE 1
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
34 #if !defined(__BIG_ENDIAN__) || defined(__x86_64__) || defined(__i386__)
35 #ifndef __LITTLE_ENDIAN__
36 #define __LITTLE_ENDIAN__
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)
52 /////////////////////////////////////////////////////////////////////////////
54 void updateDisplay(void);
55 void SetAutoFrameCap(void);
58 /////////////////////////////////////////////////////////////////////////////
60 #endif // _GPU_INTERNALS_H