MapLibre Native Core
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Typedefs
a
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerations
a
b
c
e
f
h
i
k
l
m
n
o
r
s
t
v
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Related Functions
a
b
e
i
m
o
s
t
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
backend_scope.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
mbgl
{
4
namespace
gfx {
5
6
class
RendererBackend;
7
8
class
BackendScope
{
9
public
:
14
enum class
ScopeType
: bool {
15
Implicit
,
16
Explicit
,
17
};
18
19
BackendScope
(
RendererBackend
&,
ScopeType
=
ScopeType::Explicit
);
20
~BackendScope
();
21
22
// Returns true when there is currently a BackendScope active in this thread.
23
static
bool
exists
();
24
25
private
:
26
void
activate();
27
void
deactivate();
28
29
BackendScope
* priorScope;
30
BackendScope
* nextScope;
31
RendererBackend
& backend;
32
const
ScopeType
scopeType;
33
bool
activated =
false
;
34
};
35
36
}
// namespace gfx
37
}
// namespace mbgl
mbgl::gfx::BackendScope
Definition:
backend_scope.hpp:8
mbgl::gfx::BackendScope::ScopeType
ScopeType
Definition:
backend_scope.hpp:14
mbgl::gfx::BackendScope::ScopeType::Implicit
@ Implicit
mbgl::gfx::BackendScope::ScopeType::Explicit
@ Explicit
mbgl::gfx::BackendScope::exists
static bool exists()
mbgl::gfx::BackendScope::BackendScope
BackendScope(RendererBackend &, ScopeType=ScopeType::Explicit)
mbgl::gfx::BackendScope::~BackendScope
~BackendScope()
mbgl::gfx::RendererBackend
Definition:
renderer_backend.hpp:21
mbgl
Definition:
actor.hpp:15
include
mbgl
gfx
backend_scope.hpp
MapLibre website
|
GitHub repository