2017-09-10 23:56:52 +08:00
|
|
|
/******************************************************
|
2017-09-29 17:57:17 +08:00
|
|
|
* Easy2D Game Engine
|
2017-09-10 23:56:52 +08:00
|
|
|
*
|
2017-10-05 00:53:03 +08:00
|
|
|
* Website: http://www.easy2d.cn
|
2017-10-12 02:44:44 +08:00
|
|
|
* Source Code: https://gitee.com/werelone/Easy2D
|
2017-09-10 23:56:52 +08:00
|
|
|
******************************************************/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
|
#error Easy2D is only for C++
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-09-18 23:59:08 +08:00
|
|
|
#if _MSC_VER < 1900
|
|
|
|
|
#error Do Visual Studio 2015/2017 specific stuff
|
2017-09-12 12:53:34 +08:00
|
|
|
#endif
|
|
|
|
|
|
2017-09-10 23:56:52 +08:00
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
// Modify the following defines if you have to target a platform prior to the ones specified below.
|
|
|
|
|
// Refer to MSDN for the latest info on corresponding values for different platforms.
|
|
|
|
|
#ifndef WINVER // Allow use of features specific to Windows 7 or later.
|
|
|
|
|
#define WINVER 0x0700 // Change this to the appropriate value to target other versions of Windows.
|
|
|
|
|
#endif
|
2017-09-29 17:30:37 +08:00
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
#ifndef _WIN32_WINNT // Allow use of features specific to Windows 7 or later.
|
|
|
|
|
#define _WIN32_WINNT 0x0700 // Change this to the appropriate value to target other versions of Windows.
|
|
|
|
|
#endif
|
2017-09-10 23:56:52 +08:00
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
#ifndef UNICODE
|
|
|
|
|
#define UNICODE
|
2017-09-10 23:56:52 +08:00
|
|
|
#endif
|
|
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
// Exclude rarely-used items from Windows headers.
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
|
|
|
|
|
|
// Windows Header Files:
|
|
|
|
|
#include <windows.h>
|
2017-09-29 17:30:37 +08:00
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
// C RunTime Header Files:
|
|
|
|
|
#include <wchar.h>
|
2017-09-29 17:30:37 +08:00
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
#include "emacros.h"
|
|
|
|
|
#include "ecommon.h"
|
2017-10-12 23:34:13 +08:00
|
|
|
#include "ebase.h"
|
2017-09-29 17:30:37 +08:00
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
|
|
|
|
|
#if defined(UNICODE) && (_DEBUG)
|
|
|
|
|
#pragma comment(lib, "Easy2Ddw.lib")
|
|
|
|
|
#elif !defined(UNICODE) && (_DEBUG)
|
|
|
|
|
#pragma comment(lib, "Easy2Dd.lib")
|
|
|
|
|
#elif defined(UNICODE)
|
|
|
|
|
#pragma comment(lib, "Easy2Dw.lib")
|
|
|
|
|
#elif !defined(UNICODE)
|
|
|
|
|
#pragma comment(lib, "Easy2D.lib")
|
2017-10-05 00:53:03 +08:00
|
|
|
#endif
|
2017-09-29 17:30:37 +08:00
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
|
2017-10-05 00:53:03 +08:00
|
|
|
// Functions Declare
|
|
|
|
|
|
2017-10-12 02:44:44 +08:00
|
|
|
using namespace e2d;
|