Initial sources

This commit is contained in:
2025-02-28 04:43:17 +03:00
commit d9437c8619
34 changed files with 18207 additions and 0 deletions

33
engine/main.cpp Normal file
View 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;
}