| 58 | } |
| 59 | |
| 60 | static osg::ref_ptr<HelpDisplayRenderOperation> createHelpDisplay() |
| 61 | { |
| 62 | std::string helpMessage = |
| 63 | R"(= Controls = |
| 64 | W: Zoom in |
| 65 | S: Zoom out |
| 66 | H: Toggle help message |
| 67 | Shift (hold): Camera tilt modifier |
| 68 | Esc: Exit |
| 69 | Mouse: Rotate camera |
| 70 | )"; |
| 71 | |
| 72 | osg::ref_ptr<HelpDisplayRenderOperation> helpDisplay = new HelpDisplayRenderOperation(); |
| 73 | helpDisplay->setMessage(helpMessage); |
| 74 | return helpDisplay; |
| 75 | } |
| 76 | |
| 77 | int main(int argc, char *argv[]) |
| 78 | { |