Edit

kc3-lang/ftgl/src/FTGlyph.cpp

Branch :

  • Show log

    Commit

  • Author : henry
    Date : 2004-10-03 22:50:30
    Hash : 8bdfef74
    Message : Adding support for turning off display lists in FTGL

  • src/FTGlyph.cpp
  • #include    "FTGlyph.h"
    
    
    FTGlyph::FTGlyph( FT_GlyphSlot glyph, bool useList)
    :   advance(0.0f),
        useDisplayList(useList),
        err(0)  
    {
        if( glyph)
        {
            bBox = FTBBox( glyph);
            advance = static_cast<float>( glyph->advance.x) / 64.0f;
        }
    }
    
    
    FTGlyph::~FTGlyph()
    {}