Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// IMEFont.h: interface for the CIMEFont class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_IMEFONT_H__C8D7C988_BD4A_4270_AE9D_829679CEB5F4__INCLUDED_)
|
|
#define AFX_IMEFONT_H__C8D7C988_BD4A_4270_AE9D_829679CEB5F4__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include <d3d8.h>
|
|
#include <d3dx8.h>
|
|
#include "Vertex.h"
|
|
|
|
class CIMEFont
|
|
{
|
|
TLVertex m_pVertex[4];
|
|
char m_strPrint[20][256];
|
|
char m_strPrinted[20][256];
|
|
int m_cLine;
|
|
public:
|
|
void Render(LPDIRECT3DDEVICE8 pd3dDevice,DWORD dwColor);
|
|
void MakeTexture();
|
|
bool isRewirte();
|
|
void PrintToTexture(char *str,long line);
|
|
void Create(LPDIRECT3DDEVICE8 pd3dDevice,long sizeX,long sizeY);
|
|
void Render(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
LPDIRECT3DTEXTURE8 m_pTexture;
|
|
CIMEFont();
|
|
virtual ~CIMEFont();
|
|
long m_RenderX,m_RenderY;
|
|
long m_SizeX,m_SizeY;
|
|
void SetRenderPos(int RenderX,int RenderY)
|
|
{
|
|
m_RenderX=RenderX;
|
|
m_RenderY=RenderY;
|
|
};
|
|
char* GetPrintText(int nText)
|
|
{
|
|
return m_strPrint[nText];
|
|
};
|
|
};
|
|
|
|
#endif // !defined(AFX_IMEFONT_H__C8D7C988_BD4A_4270_AE9D_829679CEB5F4__INCLUDED_)
|