/**************************************************************************** * * (c) 2009-2020 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 */ #pragma once #if defined(__android__) || defined(__ios__) #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