mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-19 16:00:22 -04:00
WIP Compilation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user