33 lines
587 B
C++
33 lines
587 B
C++
// Windows Entry Point
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <Windows.h>
|
|
|
|
#include "filesystem/filemanager.h"
|
|
#include "render/render.h"
|
|
|
|
int WINAPI WinMain (HINSTANCE hInstance,
|
|
HINSTANCE hPrevInstance,
|
|
LPSTR lpCmdLine,
|
|
int iCmdShow)
|
|
{
|
|
// Initialize file manager
|
|
g_fileManager = new FileManager();
|
|
|
|
// Start renderer
|
|
R_Init();
|
|
|
|
MSG msg;
|
|
while(GetMessage(&msg, NULL, 0, 0))
|
|
{
|
|
TranslateMessage(&msg);
|
|
DispatchMessage(&msg);
|
|
|
|
R_Present();
|
|
}
|
|
|
|
R_Shutdown();
|
|
|
|
delete g_fileManager; g_fileManager = NULL;
|
|
|
|
return 0;
|
|
} |