mirror of https://github.com/AxioDL/metaforce.git
Add cube rotate test
This commit is contained in:
parent
728141b217
commit
c1dd893c72
|
@ -64,7 +64,8 @@ void ViewManager::ParticleView::draw(boo::IGraphicsCommandQueue *gfxQ)
|
|||
{
|
||||
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));
|
||||
boo::SWindowRect windowRect = m_vm.m_mainWindow->getWindowFrame();
|
||||
float aspect = windowRect.size[0] / float(windowRect.size[1]);
|
||||
|
|
|
@ -41,6 +41,7 @@ class ViewManager : public specter::IViewManager
|
|||
class ParticleView : public specter::View
|
||||
{
|
||||
ViewManager& m_vm;
|
||||
float m_theta = 0.f;
|
||||
public:
|
||||
ParticleView(ViewManager& vm, specter::ViewResources& res, specter::View& parent)
|
||||
: View(res, parent), m_vm(vm) {}
|
||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
|||
Subproject commit e959430ebda4f94eb421fb9bbf4f5304c08be84e
|
||||
Subproject commit c07f5499d0ee670bef971e3b0081fa9e771bc3a8
|
Loading…
Reference in New Issue