| | 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(int pageid,int TextureMode,unsigned int GivenClutId);\r |
| | 40 | GLuint LoadTextureMovie(void);\r |
| | 41 | void InvalidateTextureArea(int imageX0,int imageY0,int imageX1,int 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(int TextureMode, unsigned int 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 int XP8RGBA(unsigned int BGR);\r |
| | 54 | unsigned int XP8RGBAEx(unsigned int BGR);\r |
| | 55 | unsigned int XP8RGBA_0(unsigned int BGR);\r |
| | 56 | unsigned int XP8RGBAEx_0(unsigned int BGR);\r |
| | 57 | unsigned int XP8BGRA_0(unsigned int BGR);\r |
| | 58 | unsigned int XP8BGRAEx_0(unsigned int BGR);\r |
| | 59 | unsigned int XP8RGBA_1(unsigned int BGR);\r |
| | 60 | unsigned int XP8RGBAEx_1(unsigned int BGR);\r |
| | 61 | unsigned int XP8BGRA_1(unsigned int BGR);\r |
| | 62 | unsigned int XP8BGRAEx_1(unsigned int BGR);\r |
| | 63 | unsigned int P8RGBA(unsigned int BGR);\r |
| | 64 | unsigned int P8BGRA(unsigned int BGR);\r |
| | 65 | unsigned int CP8RGBA_0(unsigned int BGR);\r |
| | 66 | unsigned int CP8RGBAEx_0(unsigned int BGR);\r |
| | 67 | unsigned int CP8BGRA_0(unsigned int BGR);\r |
| | 68 | unsigned int CP8BGRAEx_0(unsigned int BGR);\r |
| | 69 | unsigned int CP8RGBA(unsigned int BGR);\r |
| | 70 | unsigned int CP8RGBAEx(unsigned int 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 |