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/RendererCgARB1/RendererImpl.cpp

    r42 r149  
    4848 
    4949#include "../Common/OpenGLEx.hpp" 
     50#include "ConsoleCommands/Console.hpp" 
    5051#include "Templates/Array.hpp" 
    5152 
     
    455456 
    456457    if (Error!=GL_NO_ERROR) 
    457         printf("glGetError()==%i\n", Error); 
     458        Console->Print(cf::va("glGetError()==%i\n", Error)); 
    458459#endif 
    459460} 
     
    464465void RendererImplT::EndFrame() 
    465466{ 
    466     // printf("%4lu", ShaderChangeCounter); 
     467    // Console->Print(cf::va("%4lu", ShaderChangeCounter)); 
    467468    // static int LineWrap=0; 
    468469    // LineWrap++; 
    469     // if (LineWrap==20) { printf("\n"); LineWrap=0; } 
     470    // if (LineWrap==20) { Console->Print("\n"); LineWrap=0; } 
    470471} 
    471472 
     
    541542    } 
    542543 
    543     // printf("%lu textures pre-cached.\n", TexMapRepository.Size()); 
     544    // Console->Print(cf::va("%lu textures pre-cached.\n", TexMapRepository.Size())); 
    544545} 
    545546