Initial sources
This commit is contained in:
33
engine/main.cpp
Normal file
33
engine/main.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user