187 glDisable(GL_LINE_STIPPLE); |
187 glDisable(GL_LINE_STIPPLE); |
188 |
188 |
189 if (this->camera() < Camera::Free) |
189 if (this->camera() < Camera::Free) |
190 { |
190 { |
191 GLfloat cullz = this->cullValues[static_cast<int>(this->camera())]; |
191 GLfloat cullz = this->cullValues[static_cast<int>(this->camera())]; |
192 GLRotationMatrix matrix = { |
192 QMatrix4x4 matrix = { |
193 1, 0, 0, cullz, |
193 1, 0, 0, cullz, |
194 0, 1, 0, 0, |
194 0, 1, 0, 0, |
195 0, 0, 1, 0, |
195 0, 0, 1, 0, |
196 0, 0, 0, 1, |
196 0, 0, 0, 1, |
197 }; |
197 }; |
198 glMultMatrixf(matrix); |
198 glMultMatrixf(matrix.constData()); |
199 } |
199 } |
200 } |
200 } |
201 |
201 |
202 bool Canvas::freeCameraAllowed() const |
202 bool Canvas::freeCameraAllowed() const |
203 { |
203 { |