jjzjj

versionFunctions

全部标签

c++ - QOpenGLFunctions_4_3_与 QOpenGLContext::versionFunctions 的兼容性

我正在尝试从http://www.kdab.com/opengl-in-qt-5-1-part-5/编译Tesselation的示例(包括源代码)与兼容性配置文件,它根本无法加载此配置文件:我所做的次要(也是唯一)修改:@terraintessellationscene.h:QOpenGLFunctions_4_3_Compatibility*m_funcs;@terraintessellationscene.cpp:m_funcs=m_context->versionFunctions();if(!m_funcs){qFatal("RequiresOpenGL>=4.0");exit