Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 744 vs 750 for /trunk/Source Code/Rendering/Camera/Camera.cpp

Diff revisions: vs.
  @@ -79,13 +79,13 @@
79 79 if (updateGPU) {
80 80 GFXDevice& gfx = GFX_DEVICE;
81 81
82 - F32* projectionMatrixData = nullptr;
83 - projectionMatrixData = _isOrthoCamera ? gfx.setProjection(_orthoRect,
84 - _zPlanes)
85 -
86 - : gfx.setProjection(_verticalFoV,
87 - _aspectRatio,
88 - _zPlanes);
82 + F32* projectionMatrixData =
83 + _isOrthoCamera ? gfx.setProjection(_orthoRect,
84 + _zPlanes)
85 +
86 + : gfx.setProjection(_verticalFoV,
87 + _aspectRatio,
88 + _zPlanes);
89 89 if (_projectionDirty) {
90 90 _projectionMatrix.set(projectionMatrixData);
91 91 _frustumDirty = true;
  @@ -180,14 +180,14 @@
180 180
181 181 // Rotate camera about the world y axis.
182 182 // Note the order the quaternions are multiplied. That is important!
183 - if (yaw != 0.0f) {
183 + if (!IS_ZERO(yaw)) {
184 184 _tempOrientation.fromAxisAngle(WORLD_Y_AXIS, yaw);
185 185 _orientation = _tempOrientation * _orientation;
186 186 }
187 187
188 188 // Rotate camera about its local x axis.
189 189 // Note the order the quaternions are multiplied. That is important!
190 - if (pitch != 0.0f) {
190 + if (!IS_ZERO(pitch)) {
191 191 _tempOrientation.fromAxisAngle(WORLD_X_AXIS, pitch);
192 192 _orientation = _orientation * _tempOrientation;
193 193 }