Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qopenglvertexarrayobject.h
Go to the documentation of this file.
1
// Copyright (C) 2014 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Sean Harmer <sean.harmer@kdab.com>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QOPENGLVERTEXARRAYOBJECT_H
6
#
define
QOPENGLVERTEXARRAYOBJECT_H
7
8
#
include
<
QtOpenGL
/
qtopenglglobal
.
h
>
9
10
#
ifndef
QT_NO_OPENGL
11
12
#
include
<
QtCore
/
QObject
>
13
#
include
<
QtGui
/
qopengl
.
h
>
14
15
QT_BEGIN_NAMESPACE
16
17
class
QOpenGLVertexArrayObjectPrivate;
18
19
class
Q_OPENGL_EXPORT
QOpenGLVertexArrayObject
:
public
QObject
20
{
21
Q_OBJECT
22
23
public
:
24
explicit
QOpenGLVertexArrayObject(QObject* parent =
nullptr
);
25
~QOpenGLVertexArrayObject();
26
27
bool
create();
28
void
destroy();
29
bool
isCreated()
const
;
30
GLuint objectId()
const
;
31
void
bind();
32
void
release();
33
34
class
Binder
35
{
36
public
:
37
inline
Binder(QOpenGLVertexArrayObject *v)
38
: vao(v)
39
{
40
Q_ASSERT(v);
41
if
(vao->isCreated() || vao->create())
42
vao->bind();
43
}
44
45
inline
~Binder()
46
{
47
release();
48
}
49
50
inline
void
release()
51
{
52
vao->release();
53
}
54
55
inline
void
rebind()
56
{
57
vao->bind();
58
}
59
60
private
:
61
Q_DISABLE_COPY(Binder)
62
QOpenGLVertexArrayObject *vao;
63
};
64
65
private
:
66
Q_DISABLE_COPY(QOpenGLVertexArrayObject)
67
Q_DECLARE_PRIVATE(QOpenGLVertexArrayObject)
68
Q_PRIVATE_SLOT(d_func(),
void
_q_contextAboutToBeDestroyed())
69
QOpenGLVertexArrayObject(QOpenGLVertexArrayObjectPrivate &dd);
70
};
71
72
QT_END_NAMESPACE
73
74
#
endif
75
76
#
endif
// QOPENGLVERTEXARRAYOBJECT_H
QOpenGL2PaintEngineExPrivate
Definition
qopenglpaintengine_p.h:141
QOpenGLFunctions
The QOpenGLFunctions class provides cross-platform access to the OpenGL ES 2.0 API.
Definition
qopenglfunctions.h:202
QOpenGLGlyphTexture
Definition
qopengltextureglyphcache_p.h:34
QOpenGLGlyphTexture::invalidateResource
void invalidateResource() override
Definition
qopengltextureglyphcache_p.h:61
QOpenGLGlyphTexture::m_height
int m_height
Definition
qopengltextureglyphcache_p.h:72
QOpenGLGlyphTexture::freeResource
void freeResource(QOpenGLContext *context) override
Definition
qopengltextureglyphcache_p.h:49
QOpenGLGlyphTexture::m_texture
GLuint m_texture
Definition
qopengltextureglyphcache_p.h:69
QOpenGLGlyphTexture::QOpenGLGlyphTexture
QOpenGLGlyphTexture(QOpenGLContext *ctx)
Definition
qopengltextureglyphcache_p.h:36
QOpenGLGlyphTexture::m_width
int m_width
Definition
qopengltextureglyphcache_p.h:71
QOpenGLGlyphTexture::m_fbo
GLuint m_fbo
Definition
qopengltextureglyphcache_p.h:70
QOpenGLTextureGlyphCache
Definition
qopengltextureglyphcache_p.h:76
QOpenGLVertexArrayObject
The QOpenGLVertexArrayObject class wraps an OpenGL Vertex Array Object.
Definition
qopenglvertexarrayobject.h:20
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
load_glyph_image_region_to_texture
static void load_glyph_image_region_to_texture(QOpenGLContext *ctx, const QImage &srcImg, int x, int y, int w, int h, GLuint texture, int tx, int ty)
Definition
qopengltextureglyphcache.cpp:223
load_glyph_image_to_texture
static void load_glyph_image_to_texture(QOpenGLContext *ctx, QImage &img, GLuint texture, int tx, int ty)
Definition
qopengltextureglyphcache.cpp:153
next_qopengltextureglyphcache_serial_number
static QT_BEGIN_NAMESPACE int next_qopengltextureglyphcache_serial_number()
Definition
qopengltextureglyphcache.cpp:15
QRgb
QT_BEGIN_NAMESPACE typedef unsigned int QRgb
Definition
qrgb.h:14
qRed
constexpr int qRed(QRgb rgb)
Definition
qrgb.h:19
qGreen
constexpr int qGreen(QRgb rgb)
Definition
qrgb.h:22
qRgba
constexpr QRgb qRgba(int r, int g, int b, int a)
Definition
qrgb.h:34
qBlue
constexpr int qBlue(QRgb rgb)
Definition
qrgb.h:25
qAlpha
constexpr int qAlpha(QRgb rgb)
Definition
qrgb.h:28
qtbase
src
opengl
qopenglvertexarrayobject.h
Generated on
for Qt by
1.18.0