diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-05-01 01:41:12 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-05-01 01:41:53 (GMT) |
commit | 79bc8f778f0b7b935ce3d808d8c91c3730f886bb (patch) | |
tree | ffe8356a7c1038af0c104fee1516ce4d84defcef /demos/boxes/scene.h | |
parent | 1092ef425b9ed5835e4863c5ec32f9fc21af8d4d (diff) | |
download | Qt-79bc8f778f0b7b935ce3d808d8c91c3730f886bb.zip Qt-79bc8f778f0b7b935ce3d808d8c91c3730f886bb.tar.gz Qt-79bc8f778f0b7b935ce3d808d8c91c3730f886bb.tar.bz2 |
Port boxes demo to use math3d throughout
Patch originally by Ian Walters.
Diffstat (limited to 'demos/boxes/scene.h')
-rw-r--r-- | demos/boxes/scene.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/demos/boxes/scene.h b/demos/boxes/scene.h index c056739..48ecaba 100644 --- a/demos/boxes/scene.h +++ b/demos/boxes/scene.h @@ -50,13 +50,13 @@ #include "roundedbox.h" #include "gltrianglemesh.h" -#include "vector.h" #include "trackball.h" #include "glbuffers.h" #include "qtbox.h" #define PI 3.14159265358979 +class QMatrix4x4; class ParameterEdit : public QWidget { public: @@ -194,7 +194,7 @@ public slots: void setFloatParameter(const QString &name, float value); void newItem(ItemDialog::ItemType type); protected: - void renderBoxes(const gfx::Matrix4x4f &view, int excludeBox = -2); + void renderBoxes(const QMatrix4x4 &view, int excludeBox = -2); void setStates(); void setLights(); void defaultStates(); @@ -237,6 +237,4 @@ private: QGLShaderProgram *m_environmentProgram; }; - - #endif |