📄 texture.h
字号:
#ifndef CTEXTURE_H
#define CTEXTURE_H
#include "..\System\Sysdef.h"
#include "..\System\bufReader.h"
class CGraphics3D;
class CEngine;
class CTexture
{
public:
short m_w,m_h;
int m_shift;
int m_mask;
unsigned char m_bpp; // the byte per pixel
unsigned char m_flag;
short m_npal; // number of entries in pallete
unsigned short* m_ppalData;//the ppaldata of the pallete
byte* m_pData;//the index of the each pixel
void *m_pFile;
unsigned short* m_expp;
public:
~CTexture();
CTexture();
// 1: store as index, 0: expand;
bool LoadTexData(const char *filename, int);
bool LoadTga(CBufReader *r, int);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -