/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ****************************************************************************/ /** * @file * @brief QGC Video Item * @author Gus Grubba */ #ifndef GLUTILS_H #define GLUTILS_H #if defined(__mobile__) && !defined(Q_OS_MAC) #include #define getQOpenGLFunctions() QOpenGLContext::currentContext()->functions() #define QOpenGLFunctionsDef QOpenGLFunctions #endif #ifdef __rasp_pi2__ #include #define getQOpenGLFunctions() QOpenGLContext::currentContext()->versionFunctions() #define QOpenGLFunctionsDef QOpenGLFunctions_ES2 #endif #ifndef QOpenGLFunctionsDef #include #define getQOpenGLFunctions() QOpenGLContext::currentContext()->versionFunctions() #define QOpenGLFunctionsDef QOpenGLFunctions_2_0 #endif #endif