Added ability to specify the visible region so that the example framework can support different volume sizes.

This commit is contained in:
David Williams
2014-05-23 14:32:46 +02:00
parent ab741583e4
commit 4cec89de38
3 changed files with 19 additions and 6 deletions

View File

@ -52,6 +52,8 @@ public:
//Convert a SurfaceMesh to OpenGL index/vertex buffers
void setSurfaceMeshToRender(const PolyVox::SurfaceMesh<PolyVox::CubicVertex<uint8_t> >& surfaceMesh);
void setViewableRegion(PolyVox::Region viewableRegion);
protected:
//Qt OpenGL functions
void initializeGL();
@ -72,8 +74,7 @@ private:
QPoint m_CurrentMousePos;
//Camera setup
QVector3D mCenterPoint;
float mDistFromCenter;
PolyVox::Region m_viewableRegion;
int m_xRotation;
int m_yRotation;
};