aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu-gles/gpuTexture.h
diff options
context:
space:
mode:
authornotaz2010-12-31 16:57:02 +0200
committernotaz2010-12-31 16:57:02 +0200
commitce879073e4f228deec8bec5db8a2ff640636c88f (patch)
tree38f36f8cd9ac803abefb8515a687becab11f3310 /plugins/gpu-gles/gpuTexture.h
parent3a255ce52a55a2065429b8baad000c72aed31e97 (diff)
downloadpcsx_rearmed-ce879073e4f228deec8bec5db8a2ff640636c88f.tar.gz
pcsx_rearmed-ce879073e4f228deec8bec5db8a2ff640636c88f.tar.bz2
pcsx_rearmed-ce879073e4f228deec8bec5db8a2ff640636c88f.zip
gpu-gles from psx4m
Diffstat (limited to 'plugins/gpu-gles/gpuTexture.h')
-rw-r--r--plugins/gpu-gles/gpuTexture.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/plugins/gpu-gles/gpuTexture.h b/plugins/gpu-gles/gpuTexture.h
new file mode 100644
index 0000000..680208c
--- /dev/null
+++ b/plugins/gpu-gles/gpuTexture.h
@@ -0,0 +1,87 @@
+/***************************************************************************
+ texture.h - description
+ -------------------
+ begin : Sun Mar 08 2009
+ copyright : (C) 1999-2009 by Pete Bernert
+ web : www.pbernert.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. See also the license.txt file for *
+ * additional informations. *
+ * *
+ ***************************************************************************/
+
+//*************************************************************************//
+// History of changes:
+//
+// 2009/03/08 - Pete
+// - generic cleanup for the Peops release
+//
+//*************************************************************************//
+
+#ifndef _GPU_TEXTURE_H_
+#define _GPU_TEXTURE_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#define TEXTUREPAGESIZE 256*256
+
+void InitializeTextureStore();
+void CleanupTextureStore();
+GLuint LoadTextureWnd(long pageid,long TextureMode,unsigned long GivenClutId);
+GLuint LoadTextureMovie(void);
+void InvalidateTextureArea(long imageX0,long imageY0,long imageX1,long imageY1);
+void InvalidateTextureAreaEx(void);
+void LoadTexturePage(int pageid, int mode, short cx, short cy);
+void ResetTextureArea(BOOL bDelTex);
+GLuint SelectSubTextureS(long TextureMode, unsigned long GivenClutId);
+void CheckTextureMemory(void);
+
+
+void LoadSubTexturePage(int pageid, int mode, short cx, short cy);
+void LoadSubTexturePageSort(int pageid, int mode, short cx, short cy);
+void LoadPackedSubTexturePage(int pageid, int mode, short cx, short cy);
+void LoadPackedSubTexturePageSort(int pageid, int mode, short cx, short cy);
+unsigned long XP8RGBA(unsigned long BGR);
+unsigned long XP8RGBAEx(unsigned long BGR);
+unsigned long XP8RGBA_0(unsigned long BGR);
+unsigned long XP8RGBAEx_0(unsigned long BGR);
+unsigned long XP8BGRA_0(unsigned long BGR);
+unsigned long XP8BGRAEx_0(unsigned long BGR);
+unsigned long XP8RGBA_1(unsigned long BGR);
+unsigned long XP8RGBAEx_1(unsigned long BGR);
+unsigned long XP8BGRA_1(unsigned long BGR);
+unsigned long XP8BGRAEx_1(unsigned long BGR);
+unsigned long P8RGBA(unsigned long BGR);
+unsigned long P8BGRA(unsigned long BGR);
+unsigned long CP8RGBA_0(unsigned long BGR);
+unsigned long CP8RGBAEx_0(unsigned long BGR);
+unsigned long CP8BGRA_0(unsigned long BGR);
+unsigned long CP8BGRAEx_0(unsigned long BGR);
+unsigned long CP8RGBA(unsigned long BGR);
+unsigned long CP8RGBAEx(unsigned long BGR);
+unsigned short XP5RGBA (unsigned short BGR);
+unsigned short XP5RGBA_0 (unsigned short BGR);
+unsigned short XP5RGBA_1 (unsigned short BGR);
+unsigned short P5RGBA (unsigned short BGR);
+unsigned short CP5RGBA_0 (unsigned short BGR);
+unsigned short XP4RGBA (unsigned short BGR);
+unsigned short XP4RGBA_0 (unsigned short BGR);
+unsigned short XP4RGBA_1 (unsigned short BGR);
+unsigned short P4RGBA (unsigned short BGR);
+unsigned short CP4RGBA_0 (unsigned short BGR);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif // _TEXTURE_H_