Application::Application(void) : Kernel() { setWindowSize(1280, 720); lockWindowSize(true); setFramesPerSecond(60); setWindowTitle("Guilherme Recchi Cardozo. Bezier Curves."); }
bool QNXEnvironment::init(Game *game) { Environment::init(game); openLogFile(); printLog("--------------------------------------------------------\n"); printLog(" %s - %s\n", m_game->getName(), m_game->getVersion()); printLog("--------------------------------------------------------\n"); bps_initialize(); screen_create_context(&screen_ctx, 0); if (BPS_SUCCESS != screen_request_events(screen_ctx)) { printLog("screen_request_events failed\n"); screen_destroy_context(screen_ctx); return false; } m_screen = new QNXScreen(screen_ctx); m_audio = emyl::manager::get_instance(); m_input = new QNXInput(screen_ctx); setFramesPerSecond(0, false, false); m_game->init(); if (!m_screen->init()) { printLog("ERROR: Couldn't init screen.\n"); return false; } //m_screen->setCaption(m_game->getName()); if (!m_audio-> init()) { printLog("ERROR: Couldn't run sound.\n"); } emyl::setErrorCallback(emylErrorCallback); m_game->load(); return true; }
//============================================================================== MainContentComponent () { setSize (800, 600); setFramesPerSecond (60); }