Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_opengl_qopenglbuffer.cpp
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3#include <QtOpenGL/QOpenGLBuffer>
4
6void wrapper() {
7
10buffer1.create();
11
12QOpenGLBuffer buffer2 = buffer1;
14
15
19
20} // wrapper
21} // src_gui_opengl_qopenglbuffer
The QOpenGLBuffer class provides functions for creating and managing OpenGL buffer objects.
bool create()
Creates the buffer object in the OpenGL server.
void release()
Releases the buffer associated with this object from the current OpenGL context.