Qt
6.x
The Qt SDK
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
9
QOpenGLBuffer
buffer1(
QOpenGLBuffer::IndexBuffer
);
10
buffer1.
create
();
11
12
QOpenGLBuffer
buffer2 = buffer1;
14
15
17
QOpenGLBuffer::release
(
QOpenGLBuffer::VertexBuffer
);
19
20
}
// wrapper
21
}
// src_gui_opengl_qopenglbuffer
QOpenGLBuffer
The QOpenGLBuffer class provides functions for creating and managing OpenGL buffer objects.
Definition
qopenglbuffer.h:19
QOpenGLBuffer::create
bool create()
Creates the buffer object in the OpenGL server.
Definition
qopenglbuffer.cpp:277
QOpenGLBuffer::VertexBuffer
@ VertexBuffer
Definition
qopenglbuffer.h:23
QOpenGLBuffer::IndexBuffer
@ IndexBuffer
Definition
qopenglbuffer.h:24
QOpenGLBuffer::release
void release()
Releases the buffer associated with this object from the current OpenGL context.
Definition
qopenglbuffer.cpp:456
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 by
1.9.7