fork download
  1. struct TextCreate
  2. {
  3. CD3DFont * pD3DFont;
  4.  
  5. TextCreate(const char * szFontName,int FontHeight,DWORD dwCreateFlags){
  6. pD3DFont = new CD3DFont(szFontName,FontHeight,dwCreateFlags);
  7. pD3DFont->Initialize(origIDirect3DDevice9);
  8. }
  9.  
  10. ~TextCreate(){
  11. pD3DFont->Invalidate();
  12. delete pD3DFont;
  13. }
  14. };
  15.  
  16. std::vector<std::unique_ptr<TextCreate>> fonts;
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty