/////////////////////////////////////////////////////////////////////////////// // Easy Link Library テンプレート #include "el.h" #define MAIN_SCREEN 1 void MainScreen(void); /////////////////////////////////////////////////////////////////////////////// // メイン関数 int elMain("タイトル"); { elWindow(640, 480, FALSE); elLoop() { elSetScreen(MAIN_SCREEN, MainScreen()); } elExitMain(); } /////////////////////////////////////////////////////////////////////////////// // ウインドウ生成関数 void elCreate(void) { elDraw::Screen(640, 480); elCallScreen(MAIN_SCREEN); } /////////////////////////////////////////////////////////////////////////////// // キーボード関数 void elKeyboard(void) { case VK_ESCAPE: { elDraw::Exit(); break; } elExitKeyboard(); } /////////////////////////////////////////////////////////////////////////////// // イベント関数 long elEvent(void) { elExitEvent(); } /////////////////////////////////////////////////////////////////////////////// // メイン画面 void MainScreen(void) { elDraw::Clear(); SHOW(0, 0, "ESCキーで終了"); elDraw::Refresh(); }