Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
5
namespace
src_gui_opengl_qopenglbuffer
{
6
void
wrapper
() {
7
8
//! [0]
9
QOpenGLBuffer buffer1(QOpenGLBuffer::IndexBuffer);
10
buffer1.create();
11
12
QOpenGLBuffer buffer2 = buffer1;
13
//! [0]
14
15
16
//! [1]
17
QOpenGLBuffer::release(QOpenGLBuffer::VertexBuffer);
18
//! [1]
19
20
}
// wrapper
21
}
// src_gui_opengl_qopenglbuffer
src_gui_opengl_qopenglbuffer
Definition
src_gui_opengl_qopenglbuffer.cpp:5
src_gui_opengl_qopenglbuffer::wrapper
void wrapper()
Definition
src_gui_opengl_qopenglbuffer.cpp:6
qtbase
src
opengl
doc
snippets
code
src_gui_opengl_qopenglbuffer.cpp
Generated on
for Qt by
1.14.0