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
qsgopenvgrenderable.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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
5
7
9 : m_opacity(1.0f)
10{
11 m_opacityPaint = vgCreatePaint();
12}
13
15{
16 vgDestroyPaint(m_opacityPaint);
17}
18
20{
21 if (m_opacity == opacity)
22 return;
23
24 m_opacity = opacity;
25 VGfloat values[] = {
26 1.0f, 1.0f, 1.0f, m_opacity
27 };
28 vgSetParameterfv(m_opacityPaint, VG_PAINT_COLOR, 4, values);
29}
30
32{
33 return m_opacity;
34}
35
37{
38 return m_opacityPaint;
39}
40
45
47{
48 return m_transform;
49}
50
const QOpenVGMatrix & transform() const
virtual void setTransform(const QOpenVGMatrix &transform)
virtual void setOpacity(float opacity)
Combined button and popup list for selecting options.
GLenum GLsizei GLsizei GLint * values
[15]
GLuint GLenum GLenum transform