FTFont* ftfont = new FTGLPixmapFont();

  ftfont->Open("D:/SIMHEI.ttf");

  ftfont->FaceSize(24);

 // ftfont->CharMap(ft_encoding_unicode);

  anOverlay->Begin();  

  glRasterPos2d(100, 100);

  ftfont->render(L"[中国人eee]");

 

FTGLPixmapFont显示中文是正常的,其它的不正常,需要进一步封装。

主要是利用3dlayer实现,先编译成显示列表,再使用ftgl实现

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-12-02
  • 2021-08-07
  • 2021-05-05
  • 2022-12-23
猜你喜欢
  • 2021-05-10
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2021-07-18
相关资源
相似解决方案