2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-15 19:51:21 +00:00

Add cube rotate test

This commit is contained in:
Jack Andersen 2016-04-01 17:56:19 -10:00
parent 728141b217
commit c1dd893c72
3 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,8 @@ void ViewManager::ParticleView::draw(boo::IGraphicsCommandQueue *gfxQ)
{ {
CModelFlags flags; CModelFlags flags;
CGraphics::SetModelMatrix(zeus::CTransform::Identity()); m_theta += 0.01f;
CGraphics::SetModelMatrix(zeus::CTransform::RotateZ(m_theta));
CGraphics::SetViewPointMatrix(zeus::CTransform::Identity() + zeus::CVector3f(0.f, -10.f, 0.f)); CGraphics::SetViewPointMatrix(zeus::CTransform::Identity() + zeus::CVector3f(0.f, -10.f, 0.f));
boo::SWindowRect windowRect = m_vm.m_mainWindow->getWindowFrame(); boo::SWindowRect windowRect = m_vm.m_mainWindow->getWindowFrame();
float aspect = windowRect.size[0] / float(windowRect.size[1]); float aspect = windowRect.size[0] / float(windowRect.size[1]);

View File

@ -41,6 +41,7 @@ class ViewManager : public specter::IViewManager
class ParticleView : public specter::View class ParticleView : public specter::View
{ {
ViewManager& m_vm; ViewManager& m_vm;
float m_theta = 0.f;
public: public:
ParticleView(ViewManager& vm, specter::ViewResources& res, specter::View& parent) ParticleView(ViewManager& vm, specter::ViewResources& res, specter::View& parent)
: View(res, parent), m_vm(vm) {} : View(res, parent), m_vm(vm) {}

2
hecl

@ -1 +1 @@
Subproject commit e959430ebda4f94eb421fb9bbf4f5304c08be84e Subproject commit c07f5499d0ee670bef971e3b0081fa9e771bc3a8