00001 #ifndef _Engine_H_
00002 #define _Engine_H_
00003
00004 #define WIN32_LEAN_AND_MEAN
00005
00006 #include <windows.h>
00007
00008 #pragma warning (disable : 4251)
00009 #pragma warning (disable : 4996)
00010
00011 #ifdef ZAKENGINE_EXPORTS
00012 #define ZAKENGINE_API __declspec(dllexport) // Especifica clase para exportacion
00013 #else
00014 #define ZAKENGINE_API __declspec(dllimport) // Especifica clase para importacion
00015 #endif // ZAKENGINE_EXPORTS
00016
00017 #define ZAK_ENGINE_CLASS_NAME L"ZakEngine"
00018
00019 #ifndef DIRECTINPUT_VERSION
00020 #define DIRECTINPUT_VERSION 0x800
00021 #endif
00022
00023 #define ZAK_ENGINE_NAME L"Zak Engine v1.1.0"
00024 #define ZAK_ENGINE_LOGGER_HEADER "Zak Engine v1.1.0"
00025
00026 namespace zak {
00027
00028 class ZAKENGINE_API SupportScriptReferences {
00029 public:
00030
00031 SupportScriptReferences() { _ref = 1; }
00032 ~SupportScriptReferences(){}
00033
00034 int _ref;
00035
00036 void AddRef() {
00037 ++_ref;
00038 }
00039
00040 void Release() {
00041 if (--_ref == 0)
00042 delete this;
00043 }
00044 };
00045
00046
00047 extern HINSTANCE g_hInstance;
00048
00049 }
00050
00051 #endif // _ENGINE_H_