opengl - Qt QOpenGLFunctions not declared in this scope -


I am creating a drable object class for mesh data and I am getting this linker error. At the top of the square is also organized which arranges the picture of the mess used in one of the Q Tutorials. I am also using QGLWidget on whose surface I am portrayed. Header file appears for first class.

  #ifndef GLOBJECT_H #define GLOBJECT_H #include & lt; QOpenGLFunctions & gt; # Include & lt; QOpenGLShaderProgram & gt; # Include & lt; QVector3D & gt; # Include & lt; QVector2D & gt; # Include & lt; QDebug & gt; # Include & lt; QFile & gt; Structure vertex data {QVector3D status; QVector2D Texas; QVector3D normal; }; Class globs {public: globs (); VertexData * data; Gluishore * index; Glutton vboIds [2]; Int faceCount, vertCount; Bowl Generally (Custustring Filename); }; #endif // GLOBJECT_H  

Here's the header for the other category.

  #ifndef GEOMETRYENGINE_H #defineGEOMETRYENGINE_H #include & lt; QObject & gt; # Include & lt; QOpenGL function & gt; # Include & lt; QOpenGLShaderProgram & gt; # Include & lt; QVector2D & gt; # Include & lt; QVector3D & gt; # Include & lt; QFile & gt; # Include & lt; QDebug & gt; # Include & lt; QVector & gt; # Include & lt; Globject.h & gt; Class Geometry Engine: Public QObject, Preserved QOpenGLFunctions {Q_OBJECT Public: Geometry Engine (); ~ GeometryEngine (); Zero init (); Zero lineagometry (QOpenGLShaderProgram * program); // Zero DukeGroupShop Program (QOpenGLShaderProgram *); Bull generatrampley (Custstring filename); QVector & LT; GLObject & gt; Drauble; Int drawableId = 0; }; #endif // GEOMETRYENGINE_H  

G: \ Dropbox \ GLSLDemo \ globject.cpp: 60: Error: This glitch GlGenBuffers (2, vboIds) was not declared in 'glGenBuffers'; In addition to the same error for other GL calls, I was initially started with all code in Geometriage. I did not have a radius issue, then initilizeOpenGLFunctions () is called init in the geometry, if it is relevant ^

QT OpenGL is odd. I think QOpenGLFunctions holds a general reference. Apart from this, I am poor at C ++ and used misuse of protected.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -