Добавил:
Вуз:
Предмет:
Файл:
#pragma once
#include <Windows.h>
#include "settings.h"
#include "Engine.h"
#ifndef Assert
#if defined( DEBUG ) || defined( _DEBUG )
#define Assert(b) do {if (!(b)) {OutputDebugStringA("Assert: " #b "\n");}} while(0)
#else
#define Assert(b)
#endif //DEBUG || _DEBUG
#endif
#ifndef sal
#include <sal.h>
#endif
#ifndef HINST_THISCOMPONENT
EXTERN_C IMAGE_DOS_HEADER __ImageBase;
#define HINST_THISCOMPONENT ((HINSTANCE)&__ImageBase)
#endif
class EntryPoint
{
public:
EntryPoint();
~EntryPoint();
HRESULT Init();
void RunMessageLoop();
private:
HWND mHwnd;
Engine* engine;
static LRESULT CALLBACK WndProc(_In_ HWND hwnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam);
}; 