WIP Compilation

This commit is contained in:
KiritoDv
2024-05-01 10:09:49 -06:00
parent d5264825f0
commit a2c3feb67a
328 changed files with 5338 additions and 11674 deletions
+42
View File
@@ -0,0 +1,42 @@
#include <libultraship.h>
#include <Fast3D/gfx_pc.h>
#include "Engine.h"
extern "C" {
}
extern "C"
void Graphics_PushFrame(Gfx* data) {
GameEngine::ProcessGfxCommands(data);
}
extern "C" void Timer_Update();
void push_frame() {
// GameEngine::StartAudioFrame();
GameEngine::Instance->StartFrame();
// Graphics_ThreadUpdate();w
// Timer_Update();
// thread5_iteration();
// GameEngine::EndAudioFrame();
}
#ifdef _WIN32
int SDL_main(int argc, char **argv) {
#else
#if defined(__cplusplus) && defined(PLATFORM_IOS)
extern "C"
#endif
int main(int argc, char *argv[]) {
#endif
GameEngine::Create();
// Main_SetVIMode();
// Lib_FillScreen(1);
// Main_Initialize();
// Main_ThreadEntry(NULL);
GameEngine::Instance->ProcessFrame(push_frame);
GameEngine::Instance->Destroy();
return 0;
}