mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-26 22:27:06 +08:00
27 lines
574 B
C++
27 lines
574 B
C++
// Copyright (C) 2022 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#ifndef GEOMETRYENGINE_H
|
|
#define GEOMETRYENGINE_H
|
|
|
|
#include <QOpenGLFunctions>
|
|
#include <QOpenGLShaderProgram>
|
|
#include <QOpenGLBuffer>
|
|
|
|
class GeometryEngine : protected QOpenGLFunctions
|
|
{
|
|
public:
|
|
GeometryEngine();
|
|
virtual ~GeometryEngine();
|
|
|
|
void drawCubeGeometry(QOpenGLShaderProgram *program);
|
|
|
|
private:
|
|
void initCubeGeometry();
|
|
|
|
QOpenGLBuffer arrayBuf;
|
|
QOpenGLBuffer indexBuf;
|
|
};
|
|
|
|
#endif // GEOMETRYENGINE_H
|