Czytałem tutorial o openGL w qt. Jeden z gniazd zdarzeń myszy zawiera ten kod:
if (event->buttons() & Qt::LeftButton) {
rotationX += 180 * dy;
rotationY += 180 * dx;
updateGL();
}
co robi operator & w instrukcji if? czy jest dokładnie taki sam jak ==?