📄 texture.h
字号:
//-------------------------------------------------------------------
// File: Texture.h
// Created: 05/26/99 2:30:AM
// Author: Aaron Hilton
// Comments: Create and manage OpenGL textures.
//-------------------------------------------------------------------
#ifndef __Texture_h_
#define __Texture_h_
#define MAX_TEXTURE_NAME_LENGTH 64
class CTexture
{
public:
int GetHeight();
int GetWidth();
void Lightmap();
void Transparency();
void RestoreState();
void SaveState();
void EnvironmentMapping();
CTexture();
~CTexture();
// Create and load the files.
bool LoadBMP(char* szFileName);
// Buggy loading code (texture dimensions must be a mulipler of 4)
bool LoadTransparentBMP(char* szFileName);
void Toast();
void Use();
private:
// Generates the nesessary internal data.
bool Create(char* szFileName);
char m_szName[MAX_TEXTURE_NAME_LENGTH];
unsigned int m_nID;
// Status information.
unsigned long int m_nWidth, m_nHeight;
};
#endif // __Texture_h_
//-------------------------------------------------------------------
// History:
// $Log:$
//-------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -