// main.cpp : Main program // // 08.09.1998 / DH - First release // 16.11.1998 / DH - Test with AR transfer // 23.11.1998 / DH - Tests // // Copyright (c) 1998 Daniel Hartmeier. All rights reserved. #include "Handler.hpp" #include // ------------------------------------------------------------------- extern "C" DISPENV GsDISPENV; // ------------------------------------------------------------------- #define OT_LENGTH 1 #define SPRITE_CNT 2047 // ------------------------------------------------------------------- GsOT WorldOT[2]; GsOT_TAG OTTags[2][1<act(pad); handler->draw(ot); FntPrint("%3d", h); FntFlush(-1); DrawSync(0); h = VSync(0); GsSwapDispBuff(); handler->clear(ot); GsDrawOt(ot); } ResetGraph(0); delete handler; handler = 0; return; } // ------------------------------------------------------------------- void load(char *filename, unsigned char *address) { int read = CdReadFile(filename, (u_long*)address, 0); if (read <= 0) { // Handle file read error } else { unsigned char result[128]; int remaining = CdReadSync(0, result); if (remaining) { // Handle file read sync error } } return; } // -------------------------------------------------------------------