src/gl/partrenderer.cpp

changeset 73
97df974b5ed5
parent 71
198d25fe4e21
child 77
028798a72591
equal deleted inserted replaced
72:7c27cda03747 73:97df974b5ed5
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();

mercurial