2021-10-11 18:11:48 +00:00
|
|
|
// Copyright (c) Jon Thysell <http://jonthysell.com>
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
2021-10-15 16:43:09 +00:00
|
|
|
#include "GameWindow.h"
|
2021-10-14 00:44:08 +00:00
|
|
|
#include "MacLO.h"
|
2021-10-11 18:11:48 +00:00
|
|
|
|
2021-10-15 16:43:09 +00:00
|
|
|
GameWindow gGameWindow;
|
|
|
|
|
|
|
|
void MacLO_InitToolBox()
|
2021-10-11 18:11:48 +00:00
|
|
|
{
|
|
|
|
InitGraf(&thePort);
|
|
|
|
InitFonts();
|
|
|
|
InitWindows();
|
|
|
|
InitMenus();
|
|
|
|
TEInit();
|
2021-10-14 00:44:08 +00:00
|
|
|
InitDialogs(nil);
|
2021-10-11 18:11:48 +00:00
|
|
|
FlushEvents(everyEvent, 0);
|
|
|
|
InitCursor();
|
|
|
|
}
|
|
|
|
|
2021-10-15 16:43:09 +00:00
|
|
|
void MacLO_InitWindows()
|
2021-10-11 18:11:48 +00:00
|
|
|
{
|
2021-10-15 16:43:09 +00:00
|
|
|
GameWindow_Init(&gGameWindow);
|
2021-10-11 18:11:48 +00:00
|
|
|
}
|
|
|
|
|
2021-10-15 16:43:09 +00:00
|
|
|
void MacLO_MainLoop()
|
2021-10-11 18:11:48 +00:00
|
|
|
{
|
|
|
|
while (!Button()) { }
|
|
|
|
}
|
|
|
|
|