fork download
  1. /* header?
  2. struct TextCreate
  3. {
  4.   CD3DFont * pD3DFont;
  5. TextCreate(const char * szFontName,int FontHeight,DWORD dwCreateFlags);
  6. ~TextCreate();
  7.   TextCreate(const TextCreate& that);
  8.   TextCreate& operator=(const TextCreate& that);
  9. };
  10.  
  11. //or just:
  12. extern struct TextCreate; ?
  13. */
  14. struct TextCreate
  15. {
  16. CD3DFont * pD3DFont;
  17.  
  18. TextCreate(const char * szFontName,int FontHeight,DWORD dwCreateFlags){
  19. pD3DFont = new CD3DFont(szFontName,FontHeight,dwCreateFlags);
  20. pD3DFont->Initialize(origIDirect3DDevice9);
  21. }
  22.  
  23. ~TextCreate(){
  24. pD3DFont->Invalidate();
  25. }
  26.  
  27. TextCreate(const TextCreate& that) :
  28. pD3DFont(that.pD3DFont){}
  29.  
  30. TextCreate& operator=(const TextCreate& that){
  31. if (this == &that)
  32. return *this;
  33. pD3DFont = that.pD3DFont;
  34. return *this;
  35. }
  36. };
  37.  
  38. std::vector<TextCreate> fonts;
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty