MCPcopy Create free account
hub / github.com/Prograda/Skybolt / createHelpDisplay

Function createHelpDisplay

src/SkyboltExamples/MinimalApp/MinimalApp.cpp:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

setMessageMethod · 0.80

Tested by

no test coverage detected