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/MapComposition.cpp

    r51 r149  
    2727 
    2828#include <math.h> 
    29 #include <stdio.h> 
    3029 
    3130#include "MapComposition.hpp" 
     
    748747 
    749748        case HeightMapToNormalMap: 
    750         { 
    751             char hmScaleString[32]; 
    752  
    753             sprintf(hmScaleString, "%f", HeightScale); 
    754             return std::string("hm2nm(")+Child1->GetString()+", "+hmScaleString+")"; 
    755         } 
     749            return std::string("hm2nm(")+Child1->GetString()+", "+cf::va("%f", HeightScale)+")"; 
    756750 
    757751        case FlipNormalMapYAxis: