// Copyright (C) 2012-2015 ChaosForge Ltd // http://chaosforge.org/ // // This file is part of Nova libraries. // For conditions of distribution and use, see copying.txt file in root folder. #include "nv/lib/freetype2.hh" #if defined( NV_FREETYPE_DYNAMIC ) #include "nv/core/library.hh" #define NV_FREETYPE_FUN( rtype, fname, fparams ) rtype (*fname) fparams = nullptr; #include #undef NV_FREETYPE_FUN bool nv::load_freetype_library( const char* path ) { static nv::library freetype_library; if ( freetype_library.is_open() ) return true; freetype_library.open( path ); # define NV_FREETYPE_FUN( rtype, fname, fparams ) void_assign( fname, freetype_library.get(#fname) ); # include # undef NV_FREETYPE_FUN return true; } #endif