mirror of https://github.com/AxioDL/metaforce.git
Full-window loop test; resource token fix
This commit is contained in:
parent
ee3723150d
commit
5f7c6769e3
|
@ -30,7 +30,8 @@ void ViewManager::BuildTestPART(urde::IObjectStore& objStore)
|
|||
m_lineRenderer.reset(new urde::CLineRenderer(urde::CLineRenderer::EPrimitiveMode::LineStrip, 4, nullptr, true));
|
||||
*/
|
||||
m_particleView.reset(new ParticleView(*this, m_viewResources, *m_rootView));
|
||||
m_moviePlayer.reset(new CMoviePlayer("Video/00_first_start.thp", -1.f, true, false));
|
||||
m_moviePlayer.reset(new CMoviePlayer("Video/00_first_start.thp", -1.f, false, false));
|
||||
m_moviePlayer->SetFrame({-1.0f, 1.0f, 0.f}, {-1.0f, -1.0f, 0.f}, {1.0f, -1.0f, 0.f}, {1.0f, 1.0f, 0.f});
|
||||
CDvdFile testRSF("Audio/frontend_1.rsf");
|
||||
u64 rsfLen = testRSF.Length();
|
||||
m_rsfBuf.reset(new u8[rsfLen]);
|
||||
|
@ -77,6 +78,11 @@ void ViewManager::ParticleView::draw(boo::IGraphicsCommandQueue *gfxQ)
|
|||
}
|
||||
if (m_vm.m_moviePlayer)
|
||||
{
|
||||
if (m_vm.m_moviePlayer->GetIsMovieFinishedPlaying())
|
||||
{
|
||||
m_vm.m_moviePlayer.reset(new CMoviePlayer("Video/01_startloop.thp", -1.f, true, false));
|
||||
m_vm.m_moviePlayer->SetFrame({-1.0f, 1.0f, 0.f}, {-1.0f, -1.0f, 0.f}, {1.0f, -1.0f, 0.f}, {1.0f, 1.0f, 0.f});
|
||||
}
|
||||
m_vm.m_moviePlayer->Update(1.f / 60.f);
|
||||
m_vm.m_moviePlayer->DrawFrame();
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ class ViewManager : public specter::IViewManager
|
|||
ViewManager& m_vm;
|
||||
public:
|
||||
ParticleView(ViewManager& vm, specter::ViewResources& res, specter::View& parent)
|
||||
: View(res, parent), m_vm(vm) {}
|
||||
: View(res, parent), m_vm(vm) {commitResources(res);}
|
||||
void resized(const boo::SWindowRect& root, const boo::SWindowRect& sub);
|
||||
void draw(boo::IGraphicsCommandQueue* gfxQ);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue