示例#1
0
    GLCharacterMap( const char * xFontPath
                    , uint32_t const xFontSize // fixed for now
                    , const char * xTextureStoragePath
                    , _FontPixel32 const & xOutline = _FontPixel32( 255, 255, 255 )
                            , _FontPixel32 const & xFill    = _FontPixel32( 255, 255, 255 ) )// TODO: Hook in memory font support if it becomes necessary (like streaming from net)
        : mFont( xFontPath )
        , mFontSize( xFontSize )
        , mTextureStorage( xTextureStoragePath )
        , mOutlineColor( xOutline )
        , mFillColor( xFill )
    {
        if ( xTextureStoragePath == NULL )
        {
            SISULOG("Texture storage location was not specified (null).");
            exit( -1 );
        }

        mFont.setFontSize( xFontSize );
    }