Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qsgmapboxglnode.h
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// Copyright (C) 2017 Mapbox, Inc.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#ifndef QSGMAPBOXGLNODE_H
6
#define QSGMAPBOXGLNODE_H
7
8
#include <QtQuick/QQuickWindow>
9
#include <QtQuick/QSGRenderNode>
10
#include <QtQuick/QSGSimpleTextureNode>
11
#include <QtOpenGL/QOpenGLFramebufferObject>
12
13
#include <QMapboxGL>
14
15
class
QGeoMapMapboxGL
;
16
17
class
QSGMapboxGLTextureNode
:
public
QSGSimpleTextureNode
18
{
19
public
:
20
QSGMapboxGLTextureNode
(
const
QMapboxGLSettings &,
const
QSize
&,
qreal
pixelRatio,
QGeoMapMapboxGL
*geoMap);
21
22
QMapboxGL*
map
()
const
;
23
24
void
resize
(
const
QSize
&
size
,
qreal
pixelRatio);
25
void
render
(
QQuickWindow
*);
26
27
private
:
28
std::unique_ptr<QMapboxGL> m_map;
29
std::unique_ptr<QOpenGLFramebufferObject> m_fbo;
30
};
31
32
class
QSGMapboxGLRenderNode
:
public
QSGRenderNode
33
{
34
public
:
35
QSGMapboxGLRenderNode
(
const
QMapboxGLSettings &,
const
QSize
&,
qreal
pixelRatio,
QGeoMapMapboxGL
*geoMap);
36
37
QMapboxGL*
map
()
const
;
38
39
// QSGRenderNode
40
void
render
(
const
RenderState
*
state
)
override
;
41
StateFlags
changedStates
()
const override
;
42
43
private
:
44
std::unique_ptr<QMapboxGL> m_map;
45
};
46
47
#endif
// QSGMAPBOXGLNODE_H
QGeoMapMapboxGL
Definition
qgeomapmapboxgl.h:14
QQuickWindow
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
Definition
qquickwindow.h:41
QSGMapboxGLRenderNode
Definition
qsgmapboxglnode.h:33
QSGMapboxGLRenderNode::changedStates
StateFlags changedStates() const override
When the underlying rendering API is OpenGL, this function should return a mask where each bit repres...
Definition
qsgmapboxglnode.cpp:121
QSGMapboxGLRenderNode::render
void render(const RenderState *state) override
This function is called by the renderer and should paint this node with directly invoking commands in...
Definition
qsgmapboxglnode.cpp:104
QSGMapboxGLRenderNode::map
QMapboxGL * map() const
Definition
qsgmapboxglnode.cpp:99
QSGMapboxGLTextureNode
Definition
qsgmapboxglnode.h:18
QSGMapboxGLTextureNode::render
void render(QQuickWindow *)
Definition
qsgmapboxglnode.cpp:59
QSGMapboxGLTextureNode::resize
void resize(const QSize &size, qreal pixelRatio)
Definition
qsgmapboxglnode.cpp:32
QSGMapboxGLTextureNode::map
QMapboxGL * map() const
Definition
qsgmapboxglnode.cpp:83
QSGRenderNode
The QSGRenderNode class represents a set of custom rendering commands targeting the graphics API that...
Definition
qsgrendernode.h:16
QSGSimpleTextureNode
The QSGSimpleTextureNode class is provided for convenience to easily draw textured content using the ...
Definition
qsgsimpletexturenode.h:16
QSize
\inmodule QtCore
Definition
qsize.h:25
state
else opt state
[0]
Definition
doc_src_styles.cpp:11
size
GLenum GLuint GLintptr GLsizeiptr size
[1]
Definition
qopengles2ext.h:660
qreal
double qreal
Definition
qtypes.h:92
QSGRenderNode::RenderState
Definition
qsgrendernode.h:38
qtlocation
src
plugins
geoservices
mapboxgl
qsgmapboxglnode.h
Generated by
1.9.7