aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/samples/SampleBase/ui/CommonUIController.cpp
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
committerMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
commitb350eb5f4d44e8448115796144375d79438d74ae (patch)
tree8e102e8c28f45a1b87bd335ceee4f33c3d4ee7c2 /NvCloth/samples/SampleBase/ui/CommonUIController.cpp
parentAdd visual samples. (diff)
downloadnvcloth-b350eb5f4d44e8448115796144375d79438d74ae.tar.xz
nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.zip
NvCloth 1.1.0 Release. (22041545)
Diffstat (limited to 'NvCloth/samples/SampleBase/ui/CommonUIController.cpp')
-rw-r--r--NvCloth/samples/SampleBase/ui/CommonUIController.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/NvCloth/samples/SampleBase/ui/CommonUIController.cpp b/NvCloth/samples/SampleBase/ui/CommonUIController.cpp
index 0c0cac8..63284a2 100644
--- a/NvCloth/samples/SampleBase/ui/CommonUIController.cpp
+++ b/NvCloth/samples/SampleBase/ui/CommonUIController.cpp
@@ -89,12 +89,7 @@ LRESULT CommonUIController::MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
int iKeyPressed = static_cast<int>(wParam);
switch (iKeyPressed)
{
- case 'P':
- {
- //getPhysXController().setPaused(!getPhysXController().isPaused());
- break;
- }
- case 'O':
+ case 'B':
{
getRenderer().setWireframeMode(!getRenderer().getWireframeMode());
break;
@@ -226,7 +221,7 @@ void CommonUIController::drawUI()
{
// WireFrame
bool wireFrameEnabled = getRenderer().getWireframeMode();
- if (ImGui::Checkbox("WireFrame (O)", &wireFrameEnabled))
+ if (ImGui::Checkbox("WireFrame (B)", &wireFrameEnabled))
{
getRenderer().setWireframeMode(wireFrameEnabled);
}