source: trunk/src/lib/freetype2.cc

Last change on this file was 406, checked in by epyon, 10 years ago
  • code compiles cleanly on maximum warning level
File size: 847 bytes
RevLine 
[395]1// Copyright (C) 2012-2015 ChaosForge Ltd
[10]2// http://chaosforge.org/
3//
[395]4// This file is part of Nova libraries.
5// For conditions of distribution and use, see copying.txt file in root folder.
[10]6
7#include "nv/lib/freetype2.hh"
8
9#if defined( NV_FREETYPE_DYNAMIC )
10
[319]11#include "nv/core/library.hh"
[10]12
[319]13#define NV_FREETYPE_FUN( rtype, fname, fparams ) rtype (*fname) fparams = nullptr;
[167]14#include <nv/lib/detail/freetype2_functions.inc>
[319]15#undef NV_FREETYPE_FUN
[10]16
17bool nv::load_freetype_library( const char* path )
18{
[109]19        static nv::library freetype_library;
20        if ( freetype_library.is_open() ) return true;
21        freetype_library.open( path );
[10]22
[406]23#       define NV_FREETYPE_FUN( rtype, fname, fparams ) void_assign( fname, freetype_library.get(#fname) );
[167]24#       include <nv/lib/detail/freetype2_functions.inc>
[319]25#       undef NV_FREETYPE_FUN
[10]26        return true;
27}
28#endif
Note: See TracBrowser for help on using the repository browser.