📄 blp.h
字号:
/********************************************************************************
Warcraft 3 Viewer - Utility to view models and textures from Warcraft 3
Copyright (C) 2002 David GRIMBICHLER (theprophet@wanadoo.Fr)
http://www.xeberon.net
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
********************************************************************************/
#ifndef _BLP_H_
#define _BLP_H_
typedef char MaChaine[MAX_PATH];
struct MyMPQ
{
DWORD num_files;
MaChaine *filename_table;
};
int LoadBLP(char*filename,DWORD& width,DWORD& height,DWORD& type,DWORD& subtype, int rID);
const char default_rIDTable[50][256] =
{
"",
"", //"ReplaceableTextures\\TeamColor\\TeamColor00.blp",
"ReplaceableTextures\\TeamGlow\\TeamGlow00.blp",
"",
"",
"",
"",
"",
"",
"",
"",
"ReplaceableTextures\\Cliff\\Cliff0.blp",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"ReplaceableTextures\\LordaeronTree\\LordaeronSummerTree.blp",
"ReplaceableTextures\\AshenvaleTree\\AshenTree.blp",
"ReplaceableTextures\\BarrensTree\\BarrensTree.blp",
"ReplaceableTextures\\NorthrendTree\\NorthTree.blp",
"ReplaceableTextures\\Mushroom\\MushroomTree.blp",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
};
class WarCraft_BLP
{
public:
GLuint glbind;
DWORD width;
DWORD height;
DWORD type;
DWORD subtype;
char* name;
WarCraft_BLP (void);
~WarCraft_BLP (void);
void Free (void);
void Render (int mode);
void Load (char* inName);
};
#else//_BLP_H_
#error "blp.h already included"
#endif//_BLP_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -