summaryrefslogtreecommitdiff
path: root/Editor/main.cpp
blob: 193a52a242b235381e72b5c5d1ed54bfadf80d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <windows.h>
#include "GUI/EditorWindows.h"

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw)
{
    RegisterWindowClasses();

    ContainnerWindow* wnd = new ContainnerWindow(); 

    Vector2f min = Vector2f(100, 100);
    Vector2f max = Vector2f(700, 700);
    wnd->Init(Rectf(400, 400, 500, 500), ContainnerWindow::ShowMode::kShowMainWindow, min, max);

    while (1)
    {
        MSG msg;
        //if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
        //{
        //    if (msg.message == WM_QUIT) return 0;
        //    TranslateMessage(&msg);
        //}
        if (GetMessage(&msg, NULL, 0U, 0U) != 0)
        {
            //ResetGfxDeviceIfNeeded();
            TranslateMessage(&msg);
            DispatchMessage(&msg);
        }

    }

    
    return 0;
}