本文整理汇总了C++中ProxyHelper::GetConfig方法的典型用法代码示例。如果您正苦于以下问题:C++ ProxyHelper::GetConfig方法的具体用法?C++ ProxyHelper::GetConfig怎么用?C++ ProxyHelper::GetConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProxyHelper
的用法示例。
在下文中一共展示了ProxyHelper::GetConfig方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wWinMain
int WINAPI wWinMain(HINSTANCE instance_handle, HINSTANCE, LPWSTR, INT) {
InitConfig();
InitModes();
InstallHook();
frame_window main_window("perception");
main_window.add_item("Disabled\t0");
main_window.add_item("DIY Rift\t25");
main_window.add_item("Oculus Rift\t26");
main_window.add_item("Oculus Rift Cropped\t27");
main_window.add_item("Side by Side\t20");
main_window.add_item("Over Under\t30");
main_window.add_item("Horizontal Interleave\t40");
main_window.add_item("Vertical Interleave\t50");
main_window.add_item("Checkerboard\t60");
main_window.add_item("Anaglyph (Red/Cyan)\t1");
main_window.add_item("Anaglyph (Red/Cyan) B+W\t2");
main_window.add_item("Anaglyph (Yellow/Blue)\t5");
main_window.add_item("Anaglyph (Yellow/Blue) B+W\t6");
main_window.add_item("Anaglyph (Green/Magenta)\t10");
main_window.add_item("Anaglyph (Green/Magenta) B+W\t11");
main_window.add_item2("No Tracking\t0");
main_window.add_item2("Hillcrest Labs\t10");
main_window.add_item2("FreeTrack\t20");
main_window.add_item2("Shared Memory Tracker\t30");
main_window.add_item2("OculusTrack\t40");
int mode;
int mode2;
ProxyHelper helper = ProxyHelper();
helper.GetConfig(mode, mode2);
SendMessage(main_window.combobox->combobox_handle, CB_SETCURSEL, stereoModes[mode], 0);
SendMessage(main_window.combobox2->combobox_handle, CB_SETCURSEL, trackerModes[mode2], 0);
main_window.run();
RemoveHook();
return 0;
}