#include #include int main(int argc, char *argv[]) { AG_Window *win; AG_Table *tbl; /* Initialize Agar. */ if (AG_InitCore("table1", 0) == -1 || AG_InitVideo(320, 240, 32, AG_VIDEO_RESIZABLE) == -1) return (1); /* Create a new window. */ win = AG_WindowNew(0); /* Create a new table that expands to fill the window. */ tbl = AG_TableNew(win, AG_TABLE_EXPAND); /* Show the window and enter event loop. */ AG_WindowShow(win); AG_EventLoop(); return (0); }