1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DRENDER_RENDER_OPENGL_GRAPHICSHELPERES3_2_H
5#define QT3DRENDER_RENDER_OPENGL_GRAPHICSHELPERES3_2_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <graphicshelperes3_1_p.h>
19
20QT_BEGIN_NAMESPACE
21
22namespace Qt3DRender {
23namespace Render {
24namespace OpenGL {
25
26class GraphicsHelperES3_2 : public GraphicsHelperES3_1
27{
28public:
29 GraphicsHelperES3_2();
30 ~GraphicsHelperES3_2();
31
32 bool supportsFeature(Feature feature) const override;
33
34 // QGraphicHelperInterface interface
35 void bindFrameBufferAttachment(QOpenGLTexture *texture, const Attachment &attachment) override;
36 bool frameBufferNeedsRenderBuffer(const Attachment &attachment) override;
37 void setVerticesPerPatch(GLint verticesPerPatch) override;
38 void drawElementsInstancedBaseVertexBaseInstance(GLenum primitiveType, GLsizei primitiveCount, GLint indexType, void *indices, GLsizei instances, GLint baseVertex = 0, GLint baseInstance = 0) override;
39 UniformType uniformTypeFromGLType(GLenum glType) override;
40 uint uniformByteSize(const ShaderUniform &description) override;
41
42};
43
44} // namespace OpenGL
45} // namespace Render
46} // namespace Qt3DRender
47
48QT_END_NAMESPACE
49
50#endif // QT3DRENDER_RENDER_OPENGL_GRAPHICSHELPERES3_2_H
51

source code of qt3d/src/plugins/renderers/opengl/graphicshelpers/graphicshelperes3_2_p.h