adjust irq10 and rcnt for pal
[pcsx_rearmed.git] / plugins / gpu-gles / gpuTexture.h
CommitLineData
ce879073 1/***************************************************************************\r
2 texture.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 _GPU_TEXTURE_H_\r
28#define _GPU_TEXTURE_H_\r
29\r
30#ifdef __cplusplus\r
31extern "C" {\r
32#endif\r
33\r
34\r
35#define TEXTUREPAGESIZE 256*256\r
36\r
37void InitializeTextureStore();\r
38void CleanupTextureStore();\r
c94fde37 39GLuint LoadTextureWnd(int pageid,int TextureMode,unsigned int GivenClutId);\r
ce879073 40GLuint LoadTextureMovie(void);\r
c94fde37 41void InvalidateTextureArea(int imageX0,int imageY0,int imageX1,int imageY1);\r
ce879073 42void InvalidateTextureAreaEx(void);\r
43void LoadTexturePage(int pageid, int mode, short cx, short cy);\r
44void ResetTextureArea(BOOL bDelTex);\r
c94fde37 45GLuint SelectSubTextureS(int TextureMode, unsigned int GivenClutId);\r
ce879073 46void CheckTextureMemory(void);\r
47\r
48\r
49void LoadSubTexturePage(int pageid, int mode, short cx, short cy);\r
50void LoadSubTexturePageSort(int pageid, int mode, short cx, short cy);\r
51void LoadPackedSubTexturePage(int pageid, int mode, short cx, short cy);\r
52void LoadPackedSubTexturePageSort(int pageid, int mode, short cx, short cy);\r
c94fde37 53unsigned int XP8RGBA(unsigned int BGR);\r
54unsigned int XP8RGBAEx(unsigned int BGR);\r
55unsigned int XP8RGBA_0(unsigned int BGR);\r
56unsigned int XP8RGBAEx_0(unsigned int BGR);\r
57unsigned int XP8BGRA_0(unsigned int BGR);\r
58unsigned int XP8BGRAEx_0(unsigned int BGR);\r
59unsigned int XP8RGBA_1(unsigned int BGR);\r
60unsigned int XP8RGBAEx_1(unsigned int BGR);\r
61unsigned int XP8BGRA_1(unsigned int BGR);\r
62unsigned int XP8BGRAEx_1(unsigned int BGR);\r
63unsigned int P8RGBA(unsigned int BGR);\r
64unsigned int P8BGRA(unsigned int BGR);\r
65unsigned int CP8RGBA_0(unsigned int BGR);\r
66unsigned int CP8RGBAEx_0(unsigned int BGR);\r
67unsigned int CP8BGRA_0(unsigned int BGR);\r
68unsigned int CP8BGRAEx_0(unsigned int BGR);\r
69unsigned int CP8RGBA(unsigned int BGR);\r
70unsigned int CP8RGBAEx(unsigned int BGR);\r
ce879073 71unsigned short XP5RGBA (unsigned short BGR);\r
72unsigned short XP5RGBA_0 (unsigned short BGR);\r
73unsigned short XP5RGBA_1 (unsigned short BGR);\r
74unsigned short P5RGBA (unsigned short BGR);\r
75unsigned short CP5RGBA_0 (unsigned short BGR);\r
76unsigned short XP4RGBA (unsigned short BGR);\r
77unsigned short XP4RGBA_0 (unsigned short BGR);\r
78unsigned short XP4RGBA_1 (unsigned short BGR);\r
79unsigned short P4RGBA (unsigned short BGR);\r
80unsigned short CP4RGBA_0 (unsigned short BGR);\r
81\r
82#ifdef __cplusplus\r
83}\r
84#endif\r
85\r
86\r
87#endif // _TEXTURE_H_\r