MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / main

Function main

examples/clients/Location2D.cpp:50–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50int main() {
51 osvr::clientkit::ClientContext context(
52 "com.osvr.exampleclients.Location2DCallback");
53
54 osvr::clientkit::Interface location =
55 context.getInterface("/com_osvr_Multi/Location2D/location2D");
56
57 location.registerCallback(&location2DCallback, NULL);
58
59 // Pretend that this is your application's mainloop.
60 while (1) {
61 context.update();
62 }
63
64 std::cout << "Library shut down, exiting." << std::endl;
65 return 0;
66}

Callers

nothing calls this directly

Calls 3

registerCallbackMethod · 0.80
getInterfaceMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected