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 |
31 | extern "C" {\r |
32 | #endif\r |
33 | \r |
34 | \r |
35 | #define TEXTUREPAGESIZE 256*256\r |
36 | \r |
37 | void InitializeTextureStore();\r |
38 | void CleanupTextureStore();\r |
39 | GLuint LoadTextureWnd(long pageid,long TextureMode,unsigned long GivenClutId);\r |
40 | GLuint LoadTextureMovie(void);\r |
41 | void InvalidateTextureArea(long imageX0,long imageY0,long imageX1,long imageY1);\r |
42 | void InvalidateTextureAreaEx(void);\r |
43 | void LoadTexturePage(int pageid, int mode, short cx, short cy);\r |
44 | void ResetTextureArea(BOOL bDelTex);\r |
45 | GLuint SelectSubTextureS(long TextureMode, unsigned long GivenClutId);\r |
46 | void CheckTextureMemory(void);\r |
47 | \r |
48 | \r |
49 | void LoadSubTexturePage(int pageid, int mode, short cx, short cy);\r |
50 | void LoadSubTexturePageSort(int pageid, int mode, short cx, short cy);\r |
51 | void LoadPackedSubTexturePage(int pageid, int mode, short cx, short cy);\r |
52 | void LoadPackedSubTexturePageSort(int pageid, int mode, short cx, short cy);\r |
53 | unsigned long XP8RGBA(unsigned long BGR);\r |
54 | unsigned long XP8RGBAEx(unsigned long BGR);\r |
55 | unsigned long XP8RGBA_0(unsigned long BGR);\r |
56 | unsigned long XP8RGBAEx_0(unsigned long BGR);\r |
57 | unsigned long XP8BGRA_0(unsigned long BGR);\r |
58 | unsigned long XP8BGRAEx_0(unsigned long BGR);\r |
59 | unsigned long XP8RGBA_1(unsigned long BGR);\r |
60 | unsigned long XP8RGBAEx_1(unsigned long BGR);\r |
61 | unsigned long XP8BGRA_1(unsigned long BGR);\r |
62 | unsigned long XP8BGRAEx_1(unsigned long BGR);\r |
63 | unsigned long P8RGBA(unsigned long BGR);\r |
64 | unsigned long P8BGRA(unsigned long BGR);\r |
65 | unsigned long CP8RGBA_0(unsigned long BGR);\r |
66 | unsigned long CP8RGBAEx_0(unsigned long BGR);\r |
67 | unsigned long CP8BGRA_0(unsigned long BGR);\r |
68 | unsigned long CP8BGRAEx_0(unsigned long BGR);\r |
69 | unsigned long CP8RGBA(unsigned long BGR);\r |
70 | unsigned long CP8RGBAEx(unsigned long BGR);\r |
71 | unsigned short XP5RGBA (unsigned short BGR);\r |
72 | unsigned short XP5RGBA_0 (unsigned short BGR);\r |
73 | unsigned short XP5RGBA_1 (unsigned short BGR);\r |
74 | unsigned short P5RGBA (unsigned short BGR);\r |
75 | unsigned short CP5RGBA_0 (unsigned short BGR);\r |
76 | unsigned short XP4RGBA (unsigned short BGR);\r |
77 | unsigned short XP4RGBA_0 (unsigned short BGR);\r |
78 | unsigned short XP4RGBA_1 (unsigned short BGR);\r |
79 | unsigned short P4RGBA (unsigned short BGR);\r |
80 | unsigned 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 |