Show
Ignore:
Timestamp:
01/16/08 16:07:40 (1 year ago)
Author:
cneumann
Message:

changed: - factory functions return a TransitPtr? that can not be implicitly

converted to C Ptr. Should help with porting.

added: - GlobalRefPtr?, needed for cases where upon return from main

a RefPtr? goes out of scope (it would attempt to access the
FCFactory which is already shutdown at that point).

status: - vrml loader does not compile (needs porting to ref ptr)

  • tutorials compile, run and exit cleanly
  • multithreading and cluster are untested, yet
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/Statistics/Foregrounds/OSGStatisticsDefaultFont.cpp

    r1037 r1039  
    616616    _texObjChunk->setMinFilter(GL_NEAREST); 
    617617    _texObjChunk->setMagFilter(GL_NEAREST); 
     618     
     619    addPreFactoryExitFunction(&releaseTextFace); 
    618620} 
    619621 
     
    624626StatisticsDefaultFontBase::~StatisticsDefaultFontBase() 
    625627{ 
    626     if (_texObjChunk != NullFC) 
    627         subRef(_texObjChunk); 
    628628    if (_face != 0) 
    629629    { 
     
    633633} 
    634634 
     635bool 
     636StatisticsDefaultFontBase::releaseTextFace(void) 
     637{ 
     638    FDEBUG(("StatisticsDefaultFontBase::releaseTextFace:\n")); 
     639     
     640    StatisticsDefaultFont::the()->_texObjChunk.dump(); 
     641 
     642    OSG::subRef(StatisticsDefaultFont::the()->_face); 
     643    StatisticsDefaultFont::the()->_face = 0; 
     644 
     645    return true; 
     646} 
     647 
    635648 
    636649OSG_END_NAMESPACE