This commit is contained in:
FunkyFr3sh 2017-11-26 08:49:30 +01:00
parent b82cffb728
commit c526cf63de
9 changed files with 75 additions and 15 deletions

24
inc/debug.h Normal file
View 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

View file

@ -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;