mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-27 06:28:26 +08:00
27 lines
548 B
C
27 lines
548 B
C
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||
|
|
||
|
#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
|