diff --git a/examples/simple_demo_qml/GzRenderer.cc b/examples/simple_demo_qml/GzRenderer.cc index 4b4756d02..0b55cca07 100644 --- a/examples/simple_demo_qml/GzRenderer.cc +++ b/examples/simple_demo_qml/GzRenderer.cc @@ -25,6 +25,8 @@ #include +#include + #include using namespace gz; @@ -285,7 +287,7 @@ void GzRenderer::InitEngine() ////////////////////////////////////////////////// void GzRenderer::UpdateCamera() { - double angle = this->cameraOffset / 2 * M_PI; + double angle = this->cameraOffset / 2 * GZ_PI; double x = sin(angle) * 3.0 + 3.0; double y = cos(angle) * 3.0; this->camera->SetLocalPosition(x, y, 0.0);