log fps
This commit is contained in:
parent
b82cffb728
commit
c526cf63de
9 changed files with 75 additions and 15 deletions
12
src/debug.c
Normal file
12
src/debug.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void DebugPrint(const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
char buffer[512];
|
||||
_vsnprintf_s(buffer, sizeof(buffer), _TRUNCATE, format, args);
|
||||
OutputDebugStringA(buffer);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue