log fps
This commit is contained in:
parent
b82cffb728
commit
c526cf63de
9 changed files with 75 additions and 15 deletions
24
inc/debug.h
Normal file
24
inc/debug.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void DebugPrint(const char *format, ...);
|
||||
|
||||
//#define _DEBUG 1
|
||||
|
||||
//use OutputDebugStringA rather than printf
|
||||
//#define _DEBUGstring 1
|
||||
|
||||
//log everything (slow)
|
||||
//#define _DEBUGx 1
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
#ifdef _DEBUGstring
|
||||
#define printf(format, ...) DebugPrint("xDBG " format, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define printf(format, ...)
|
||||
#endif
|
|
@ -19,13 +19,10 @@
|
|||
|
||||
#include <windows.h>
|
||||
#include "ddraw.h"
|
||||
#include "debug.h"
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
|
||||
#ifndef _DEBUG
|
||||
#define printf(format, ...)
|
||||
#endif
|
||||
|
||||
struct IDirectDrawImpl;
|
||||
struct IDirectDrawImplVtbl;
|
||||
struct IDirectDrawSurfaceImpl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue