Buildfix for LLVM
[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
39GLuint LoadTextureWnd(long pageid,long TextureMode,unsigned long GivenClutId);\r
40GLuint LoadTextureMovie(void);\r
41void InvalidateTextureArea(long imageX0,long imageY0,long imageX1,long imageY1);\r
42void InvalidateTextureAreaEx(void);\r
43void LoadTexturePage(int pageid, int mode, short cx, short cy);\r
44void ResetTextureArea(BOOL bDelTex);\r
45GLuint SelectSubTextureS(long TextureMode, unsigned long GivenClutId);\r
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
53unsigned long XP8RGBA(unsigned long BGR);\r
54unsigned long XP8RGBAEx(unsigned long BGR);\r
55unsigned long XP8RGBA_0(unsigned long BGR);\r
56unsigned long XP8RGBAEx_0(unsigned long BGR);\r
57unsigned long XP8BGRA_0(unsigned long BGR);\r
58unsigned long XP8BGRAEx_0(unsigned long BGR);\r
59unsigned long XP8RGBA_1(unsigned long BGR);\r
60unsigned long XP8RGBAEx_1(unsigned long BGR);\r
61unsigned long XP8BGRA_1(unsigned long BGR);\r
62unsigned long XP8BGRAEx_1(unsigned long BGR);\r
63unsigned long P8RGBA(unsigned long BGR);\r
64unsigned long P8BGRA(unsigned long BGR);\r
65unsigned long CP8RGBA_0(unsigned long BGR);\r
66unsigned long CP8RGBAEx_0(unsigned long BGR);\r
67unsigned long CP8BGRA_0(unsigned long BGR);\r
68unsigned long CP8BGRAEx_0(unsigned long BGR);\r
69unsigned long CP8RGBA(unsigned long BGR);\r
70unsigned long CP8RGBAEx(unsigned long BGR);\r
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