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/RendererARBprogs/Shaders/_CommonHelpers.cpp

    r138 r149  
    2828#include "_CommonHelpers.hpp" 
    2929#include "../../Common/OpenGLEx.hpp" 
     30#include "ConsoleCommands/Console.hpp" 
    3031#include <stdio.h> 
    3132#include <string.h> 
     
    6465    if (ErrorID!=GL_NO_ERROR || ErrorPos!=-1 || ErrorStringLen>0) 
    6566    { 
    66         printf("%s\n\nProblem detected:\nglGetError() == %i,\nerror position: %i,\nerror string: %s\n", ProgramCode, ErrorID, ErrorPos, ErrorString); 
     67        Console->Print(cf::va("%s\n\nProblem detected:\nglGetError() == %i,\nerror position: %i,\nerror string: %s\n", ProgramCode, ErrorID, ErrorPos, ErrorString)); 
    6768 
    6869        FILE* ErrorFile=fopen("ProgError.txt", "a");