mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-20 00:08:25 -04:00
78a7d156c9
* Bunch of fixes
48 lines
961 B
C++
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;
|
|
}
|