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
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
7#include "qopenvgcontext_p.h"
8#include "qsgopenvghelpers.h"
9
10#include <QtGui/QWindow>
11
12#include <VG/openvg.h>
13
15
21
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{
41}
42
QSGRootNode * rootNode() const
Returns the root of the QSGNode scene.
QColor clearColor() const
Returns the color that clears the framebuffer at the beginning of the rendering.
void visitChildren(QSGNode *node)
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
Definition qsgnode.h:37
void nodeChanged(QSGNode *node, QSGNode::DirtyState state) override
QSGOpenVGRenderer(QSGRenderContext *context)
The renderer class is the abstract baseclass used for rendering the QML scene graph.
void nodeChanged(QSGNode *node, QSGNode::DirtyState state) override
Updates internal data structures and emits the sceneGraphChanged() signal.
else opt state
[0]
const QVector< VGfloat > qColorToVGColor(const QColor &color, float opacity)
Combined button and popup list for selecting options.
static void * context