#include #include using namespace extra2d; int main(int argc, char **argv) { // 创建应用(自动创建窗口) auto app = Application::create(); AppConfig config; config.title = "Hello World"; config.width = 1280; config.height = 720; if (!app->init(config)) { printf("Failed to initialize!\n"); return -1; } printf("Window: %dx%d\n", app->getWindowWidth(), app->getWindowHeight()); // 运行应用 app->run(); // 自动销毁 return 0; }