ftgl 绘制文字

  FTFont* ftfont = new FTGLPixmapFont();3d

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

  ftfont->FaceSize(24);unicode

 // ftfont->CharMap(ft_encoding_unicode);编译

  anOverlay->Begin();  ast

  glRasterPos2d(100, 100);coding

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

 

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

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

相关文章
相关标签/搜索