MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / WriteLog

Function WriteLog

SampleFramework12/v1.00/Utility.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17{
18
19void WriteLog(const wchar* format, ...)
20{
21 wchar buffer[1024] = { 0 };
22 va_list args;
23 va_start(args, format);
24 vswprintf_s(buffer, ArraySize_(buffer), format, args);
25 if(GlobalApp != nullptr)
26 GlobalApp->AddToLog(WStringToAnsi(buffer).c_str());
27
28 OutputDebugStringW(buffer);
29}
30
31void WriteLog(const char* format, ...)
32{

Callers 6

CompileShaderFunction · 0.85
UpdateShadersFunction · 0.85
SaveTextureAsDDSFunction · 0.85
SaveTextureAsEXRFunction · 0.85
SaveTextureAsPNGFunction · 0.85
CreateWithAssimpMethod · 0.85

Calls 3

WStringToAnsiFunction · 0.85
AddToLogMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected