Show
Ignore:
Timestamp:
09/03/10 00:25:58 (21 months ago)
Author:
Carsten
Message:

Revision of Console code:

  • New "composite console" is the new default console, making it easy to add logging into a file and the graphical console during init, and making it unnecessary to reset the console pointer in DLLs that have been initialized before the graphical console.
  • Replaced several old/obsolete printf-statements (in the renderer DLLs) with their proper Console->Print() counterparts.
  • Put the Lua bindings to the global Console into separate files. This way the DLLs can include Console.hpp without being forced to link the Lua libraries in.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/Libs/MaterialSystem/RendererCgNV2X/RendererImpl.cpp

    r36 r149  
    441441 
    442442 
    443 // #include <stdio.h> 
    444  
    445443void RendererImplT::EndFrame() 
    446444{ 
    447     // printf("%4lu", ShaderChangeCounter); 
     445    // Console->Print(cf::va("%4lu", ShaderChangeCounter)); 
    448446    // static int LineWrap=0; 
    449447    // LineWrap++; 
    450     // if (LineWrap==20) { printf("\n"); LineWrap=0; } 
     448    // if (LineWrap==20) { Console->Print("\n"); LineWrap=0; } 
    451449} 
    452450