MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::gfx::BackendScope Class Reference

#include <backend_scope.hpp>

Public Types

enum class  ScopeType : bool { Implicit , Explicit }
 

Public Member Functions

 BackendScope (RendererBackend &, ScopeType=ScopeType::Explicit)
 
 ~BackendScope ()
 

Static Public Member Functions

static bool exists ()
 

Detailed Description

Definition at line 8 of file backend_scope.hpp.

Member Enumeration Documentation

◆ ScopeType

There are two types of scopes: Creating an "Implicit" scope tells Mapbox GL that the supporting windowing system has already activated the GL Backend and that no further actions are required. Creating an "Explicit" scope actually enables the GL Backend, and disables it when the BackendScope is destroyed.

Enumerator
Implicit 
Explicit 

Definition at line 14 of file backend_scope.hpp.

Constructor & Destructor Documentation

◆ BackendScope()

mbgl::gfx::BackendScope::BackendScope ( RendererBackend ,
ScopeType  = ScopeType::Explicit 
)

◆ ~BackendScope()

mbgl::gfx::BackendScope::~BackendScope ( )

Member Function Documentation

◆ exists()

static bool mbgl::gfx::BackendScope::exists ( )
static

The documentation for this class was generated from the following file: