Files
SpaghettiKart/src/port/Game.cpp
T
MegaMech 78a7d156c9 Changes for OTR (#15)
* Bunch of fixes
2024-05-22 19:19:16 -06:00

48 lines
961 B
C++

#include <libultraship.h>
#include <Fast3D/gfx_pc.h>
#include "Engine.h"
extern "C" {
#include "main.h"
#include "audio/load.h"
#include "audio/external.h"
}
extern "C"
void Graphics_PushFrame(Gfx* data) {
GameEngine::ProcessGfxCommands(data);
}
extern "C" void Timer_Update();
void push_frame() {
// GameEngine::StartAudioFrame();
GameEngine::Instance->StartFrame();
thread5_iteration();
// thread5_game_loop();
// Graphics_ThreadUpdate();w
// Timer_Update();
// 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();
// audio_init();
// sound_init();
thread5_game_loop();
while (WindowIsRunning()) {
push_frame();
}
//GameEngine::Instance->ProcessFrame(push_frame);
GameEngine::Instance->Destroy();
return 0;
}