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
qsgopenvgrenderer.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
9
10#include <QtGui/QWindow>
11
12#include <VG/openvg.h>
13
15
17 : QSGRenderer(context)
18{
19
20}
21
22QSGOpenVGRenderer::~QSGOpenVGRenderer()
23{
24
25}
26
28{
29 //Clear the window geometry with the clear color
30 vgSetfv(VG_CLEAR_COLOR, 4, QSGOpenVGHelpers::qColorToVGColor(clearColor()).constData());
31 vgClear(0, 0, VG_MAXINT, VG_MAXINT);
32
33 // Visit each node to render scene
34 QSGOpenVGNodeVisitor rendererVisitor;
35 rendererVisitor.visitChildren(rootNode());
36}
37
38void QSGOpenVGRenderer::nodeChanged(QSGNode *node, QSGNode::DirtyState state)
39{
40 QSGRenderer::nodeChanged(node, state);
41}
42
43QT_END_NAMESPACE
void nodeChanged(QSGNode *node, QSGNode::DirtyState state) override