OSVR-Core
Functions | Variables
Imaging.cpp File Reference

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 &timestamp, osvr::clientkit::ImagingReport report)
 
int main ()
 

Variables

bool gotSomething = false
 

Detailed Description

Implementation.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Function Documentation

§ imagingCallback()

void imagingCallback ( void *  userdata,
osvr::util::time::TimeValue const &  timestamp,
osvr::clientkit::ImagingReport  report 
)

The first time, let's print some info.

§ main()

int main ( void  )

We keep a copy of the last report to avoid de-allocating the image buffer until we have a new report.