summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/texture.h
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-05-09 10:25:10 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-05-09 10:25:10 +0000
commit51cf70467dfbcca5fbce7f25761678dd8b487d4e (patch)
tree151add86c7591d2a496422cf8790daec26059af8 /plugins/peopsxgl/texture.h
parent29059dcf6e6fbc34c5eacd2a3c70995a1874f02b (diff)
downloadpcsxr-51cf70467dfbcca5fbce7f25761678dd8b487d4e.tar.gz
Integrated P.E.Op.S OpenGL plugin into the build tree (still does NOT work on x86_64)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23342 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/peopsxgl/texture.h')
-rw-r--r--plugins/peopsxgl/texture.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/plugins/peopsxgl/texture.h b/plugins/peopsxgl/texture.h
new file mode 100644
index 00000000..51a897f6
--- /dev/null
+++ b/plugins/peopsxgl/texture.h
@@ -0,0 +1,69 @@
+/***************************************************************************
+ 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. *
+ * *
+ ***************************************************************************/
+
+#ifndef _GPU_TEXTURE_H_
+#define _GPU_TEXTURE_H_
+
+#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);
+
+#endif // _TEXTURE_H_