ftglpolygonfont.cpp

来自「ftgl-2.1.2 夸平台的opengl显示字体」· C++ 代码 · 共 34 行

CPP
34
字号
#include    "FTGLPolygonFont.h"#include    "FTPolyGlyph.h"FTGLPolygonFont::FTGLPolygonFont( const char* fontFilePath):   FTFont( fontFilePath){}FTGLPolygonFont::FTGLPolygonFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes):   FTFont( pBufferBytes, bufferSizeInBytes){}FTGLPolygonFont::~FTGLPolygonFont(){}FTGlyph* FTGLPolygonFont::MakeGlyph( unsigned int g){    FT_GlyphSlot ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);    if( ftGlyph)    {        FTPolyGlyph* tempGlyph = new FTPolyGlyph( ftGlyph, useDisplayLists);        return tempGlyph;    }    err = face.Error();    return NULL;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?