ftgl 绘制文字

  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实现

原文地址:https://www.cnblogs.com/lizhengjin/p/5299478.html