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

Function main

examples/clients/MinimalInit.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include <iostream>
33
34int main() {
35 osvr::clientkit::ClientContext context(
36 "com.osvr.exampleclients.MinimalInit");
37 std::cout << "OK, library initialized." << std::endl;
38
39 // Pretend that this is your application's mainloop.
40 for (int i = 0; i < 1000000; ++i) {
41 context.update();
42 }
43
44 std::cout << "Library shut down, exiting." << std::endl;
45 return 0;
46}

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected