2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-06-08 15:42:42 +00:00
|
|
|
|
2011-05-11 15:35:46 +00:00
|
|
|
#ifndef GEOMETRYENGINE_H
|
|
|
|
#define GEOMETRYENGINE_H
|
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
#include <QOpenGLFunctions>
|
|
|
|
#include <QOpenGLShaderProgram>
|
|
|
|
#include <QOpenGLBuffer>
|
2011-05-11 15:35:46 +00:00
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
class GeometryEngine : protected QOpenGLFunctions
|
2011-05-11 15:35:46 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
GeometryEngine();
|
|
|
|
virtual ~GeometryEngine();
|
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
void drawCubeGeometry(QOpenGLShaderProgram *program);
|
2011-05-11 15:35:46 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void initCubeGeometry();
|
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
QOpenGLBuffer arrayBuf;
|
|
|
|
QOpenGLBuffer indexBuf;
|
2011-05-11 15:35:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GEOMETRYENGINE_H
|