OSVR-Core
|
Implementation. More...
#include <osvr/ClientKit/Context.h>
#include <osvr/ClientKit/Interface.h>
#include <osvr/ClientKit/Imaging.h>
#include <osvr/Util/OpenCVTypeDispatch.h>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <string>
Functions | |
void | imagingCallback (void *userdata, osvr::util::time::TimeValue const ×tamp, osvr::clientkit::ImagingReport report) |
int | main () |
Variables | |
bool | gotSomething = false |
Implementation.
void imagingCallback | ( | void * | userdata, |
osvr::util::time::TimeValue const & | timestamp, | ||
osvr::clientkit::ImagingReport | report | ||
) |
The first time, let's print some info.
int main | ( | void | ) |
We keep a copy of the last report to avoid de-allocating the image buffer until we have a new report.