Commit e43e304e authored by Ellen Dekkers's avatar Ellen Dekkers

Debug code for the next 1000 bugs in picking

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7363 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 47b5ad10
......@@ -277,6 +277,17 @@ int glViewer::pickColor( ACG::SceneGraph::PickTarget _pickTarget,
_nodeIdx = rv[1];
_targetIdx = rv[0];
// // Debug Code to visualize picking cache ( DO NOT REMOVE!!!! Jan )
// QImage murks(glWidth (),glHeight (),QImage::Format_ARGB32);
// murks = pickCache_->toImage();
// for ( int i = 0 ; i < glWidth() ; ++i )
// for ( int j = 0 ; j < glHeight() ; ++j ) {
// QColor bla (murks.pixel(i,j));
// bla.setAlpha(255);
// murks.setPixel(i,j,bla.rgba());
// }
// murks.save("murks.png");
if (_hitPointPtr)
{
*_hitPointPtr = properties_.glState().unproject (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment