本文整理汇总了C++中params::InterfaceGlRef::hide方法的典型用法代码示例。如果您正苦于以下问题:C++ InterfaceGlRef::hide方法的具体用法?C++ InterfaceGlRef::hide怎么用?C++ InterfaceGlRef::hide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类params::InterfaceGlRef
的用法示例。
在下文中一共展示了InterfaceGlRef::hide方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: keyDown
void PinballWarpingApp::keyDown( KeyEvent event )
{
// pass this key event to the warp editor first
if( !Warp::handleKeyDown( mWarps, event ) ) {
// warp editor did not handle the key, so handle it here
switch( event.getCode() ) {
case KeyEvent::KEY_ESCAPE:
// quit the application
quit();
break;
case KeyEvent::KEY_f:
// toggle full screen
setFullScreen( !isFullScreen() );
break;
case KeyEvent::KEY_w:
// toggle warp edit mode
Warp::enableEditMode( !Warp::isEditModeEnabled() );
break;
case KeyEvent::KEY_p:
if(mParams->isVisible()){
mParams->hide();
}else{
mParams->show();
}
//nudging locations when not in warp mode
case KeyEvent::KEY_UP:
// nudge up pixels
mPinball.keyShiftLoc(debugLoc, 0);;
break;
case KeyEvent::KEY_DOWN:
// nudge down pixels
mPinball.keyShiftLoc(debugLoc, 1);
break;
case KeyEvent::KEY_LEFT:
// nudge left pixels
mPinball.keyShiftLoc(debugLoc, 2);
break;
case KeyEvent::KEY_RIGHT:
// nudge right pixels
mPinball.keyShiftLoc(debugLoc, 3);
break;
case KeyEvent::KEY_TAB:
// select which point we are nudging
debugLoc = mPinball.selectedLoc();
break;
//changing the threshold values
case KeyEvent::KEY_9:
// select which point we are nudging
mThreshSend = mPinball.changeThreshold(debugLoc, 0);
break;
case KeyEvent::KEY_0:
// select which point we are nudging
mThreshSend = mPinball.changeThreshold(debugLoc, 1);
break;
}
}
}