mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Add cube rotate test
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
@@ -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
2
hecl
Submodule hecl updated: e959430ebd...c07f5499d0
Reference in New Issue
Block a user