328 this->viewMatrix * glm::mat4_cast(this->modelQuaternion), |
328 this->viewMatrix * glm::mat4_cast(this->modelQuaternion), |
329 this->projectionMatrix, |
329 this->projectionMatrix, |
330 viewportVector); |
330 viewportVector); |
331 } |
331 } |
332 |
332 |
333 ldraw::Id PartRenderer::pick(const QPoint& where) |
333 ldraw::id_t PartRenderer::pick(const QPoint& where) |
334 { |
334 { |
335 const gl::RenderStyle oldRenderStyle = this->renderPreferences.style; |
335 const gl::RenderStyle oldRenderStyle = this->renderPreferences.style; |
336 this->renderPreferences.style = gl::RenderStyle::PickScene; |
336 this->renderPreferences.style = gl::RenderStyle::PickScene; |
337 this->makeCurrent(); |
337 this->makeCurrent(); |
338 this->renderScene(); |
338 this->renderScene(); |