Show
Ignore:
Timestamp:
03/06/03 18:11:24 (12 years ago)
Author:
robert
Message:

Changed the osgText::Font implementation so it used a facade us abstract away
the actual implemention. This has been done so that when a freetype font is
created the implementation can unloaded when the freetype plugin is unloaded
without breaking the main font.

Also add image margin around founds to prevent any image boundaries appearing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp

    r1651 r1662  
    1616#include <osgDB/ReadFile> 
    1717#include <osgDB/WriteFile> 
     18#include <osgDB/Registry> 
    1819 
    1920#include <osgProducer/Viewer> 
     
    515516    viewer.setSceneData(rootNode.get()); 
    516517 
     518 
     519    osgDB::Registry::instance()->closeLibrary("osgdb_freetype.so"); 
     520 
    517521    // create the windows and run the threads. 
    518522    viewer.realize(Producer::CameraGroup::ThreadPerCamera);