bitmap_font.h
来自「游戏中我们经常看到的影子效果」· C头文件 代码 · 共 36 行
H
36 行
//////////////////////////////////////////////////////////////////////////////////////////
// BITMAP_FONT.h
// Bitmap font class
// Downloaded from: www.paulsprojects.net
// Created: 26th November 2002
//
// Copyright (c) 2006, Paul Baker
// Distributed under the New BSD Licence. (See accompanying file License.txt or copy at
// http://www.paulsprojects.net/NewBSDLicense.txt)
//////////////////////////////////////////////////////////////////////////////////////////
#ifndef BITMAP_FONT_H
#define BITMAP_FONT_H
class BITMAP_FONT
{
public:
BITMAP_FONT()
{}
~BITMAP_FONT() {}
bool Init(IDirect3DDevice8 * d3dDevice);
void Shutdown()
{}
//Text writing functions
void StartTextMode(void);
void Print(int x, int y, DWORD color, const char * string, ...);
void EndTextMode(void);
protected:
ID3DXFont * font;
};
#endif //BITMAP_FONT_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?