#ifndef _FONTRAVEN_D3D9_H #define _FONTRAVEN_D3D9_H #include "common.h" #include "font.h" // Direct3D implementation of texture fonts. class FontD3D9: public FontBase { protected: // font metrics float pt,*wids,*bears,*hoss; int *qvws,*qvhs; float *qtws,*qths; // direct3d device and textures LPDIRECT3DDEVICE9 dev; LPDIRECT3DTEXTURE9 textures[256]; FontD3D9(): FontBase() {} public: FontD3D9(LPDIRECT3DDEVICE9 dev,TrueTypeFont *ttf); // create from a truetype font ~FontD3D9(); virtual void Render(int x,int y,const char *text); // render text at a screenspace location }; #endif