qt5base-lts/examples/opengl/cube/geometryengine.h

25 lines
396 B
C++

#ifndef GEOMETRYENGINE_H
#define GEOMETRYENGINE_H
#include <QtOpenGL/QGLFunctions>
#include <QtOpenGL/QGLShaderProgram>
class GeometryEngine : protected QGLFunctions
{
public:
GeometryEngine();
virtual ~GeometryEngine();
void init();
void drawCubeGeometry(QGLShaderProgram *program);
private:
void initCubeGeometry();
GLuint *vboIds;
};
#endif // GEOMETRYENGINE_H