コード例 #1
0
pbool MyContext::onInitialized()
{
    m_scene = PNEW(MyScene(this));
    PSceneManager *sceneMgr = module<PSceneManager>("scene-manager");
    sceneMgr->addScene(m_scene);
    sceneMgr->setMainScene(m_scene);

    return true;
}
コード例 #2
0
ファイル: mycontext.cpp プロジェクト: Freedom000/paper3d
pbool MyContext::onInitialized()
{
    m_scene = PNEW(MyScene(this));
    PSceneManager *sceneMgr = module<PSceneManager>("scene-manager");
    sceneMgr->addScene(m_scene);
    sceneMgr->setMainScene(m_scene);

    PLOG_INFO("Press key 'P' to stop/start the rotation.");

    return true;
}
コード例 #3
0
pbool MyContext::onInitialized()
{
    m_scene = PNEW(MyScene(this));
    PSceneManager *sceneMgr = module<PSceneManager>("scene-manager");
    sceneMgr->addScene(m_scene);
    sceneMgr->setMainScene(m_scene);

	PLOG_INFO("<Key settings>");
    PLOG_INFO("P - use point lighting");
    PLOG_INFO("D - use directional lighting");
    PLOG_INFO("S - use spot lighting");
    PLOG_INFO("H - switch low and high lighting quality");

    return true;
}