2013-11-06 22:52:00 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef CORE_INCLUDE
|
|
|
|
#define CORE_INCLUDE
|
|
|
|
|
|
|
|
#define NOMINMAX // Because I hate Microsoft now. ~Angry Dan.
|
|
|
|
// http://lolengine.net/blog/2011/3/4/fuck-you-microsoft-near-far-macros
|
|
|
|
#include <windows.h>
|
|
|
|
#include <D3D11.h>
|
|
|
|
|
2013-11-10 03:19:46 +01:00
|
|
|
#pragma comment(lib, "d3d11.lib")
|
2013-11-22 14:09:47 +01:00
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#include <d3dcompiler.h>
|
2013-11-10 03:19:46 +01:00
|
|
|
#pragma comment(lib, "d3dcompiler.lib")
|
2013-11-22 14:09:47 +01:00
|
|
|
#endif
|
|
|
|
|
2013-11-10 03:19:46 +01:00
|
|
|
|
|
|
|
|
2013-11-06 22:52:00 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
#define SAFE_RELEASE(x) if( x ) { (x)->Release(); (x) = NULL; }
|
|
|
|
#define SAFE_DELETE(x) if( x ) { delete(x); (x) = NULL; }
|
|
|
|
#define SAFE_DELETE_ARRAY(x) if( x ) { delete[](x); (x) = NULL; }
|
|
|
|
#define PI (3.14159265358979323846f)
|
|
|
|
|
|
|
|
#endif
|