Skip to content
h0pbeat edited this page Dec 23, 2012 · 2 revisions

Data reading

Data reading on OSX is performed using hidapi.

OpenGL

VSync is not enabled by default in Qt/OpenGL resulting in tearing. In order to enable it, in glwidget.cpp:

#if defined(Q_OS_MAC)
#include <OpenGL.h>
#endif
...
void GLWidget::initializeGL()
{
#if defined(Q_OS_MAC)
    const GLint swapInterval = 1;
    CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &swapInterval);
#endif
...