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

#include <backend.hpp>

Public Types

enum class  Type : uint8_t { OpenGL , TYPE_MAX }
 The active graphics API/backend type. More...
 

Static Public Member Functions

static void SetType (const Type value)
 
static Type GetType ()
 
template<typename T , typename... Args>
static std::unique_ptr< T > Create (Args... args)
 

Static Public Attributes

static constexpr Type DefaultType = Type::OpenGL
 

Detailed Description

Definition at line 10 of file backend.hpp.

Member Enumeration Documentation

◆ Type

enum mbgl::gfx::Backend::Type : uint8_t
strong

The active graphics API/backend type.

Enumerator
OpenGL 

The OpenGL API backend.

TYPE_MAX 

Not a valid backend type, used to determine the number of available backends (ie for array allocation).

Definition at line 13 of file backend.hpp.

Member Function Documentation

◆ Create()

template<typename T , typename... Args>
static std::unique_ptr<T> mbgl::gfx::Backend::Create ( Args...  args)
inlinestatic

Definition at line 32 of file backend.hpp.

◆ GetType()

static Type mbgl::gfx::Backend::GetType ( )
inlinestatic

Definition at line 27 of file backend.hpp.

◆ SetType()

static void mbgl::gfx::Backend::SetType ( const Type  value)
inlinestatic

Definition at line 21 of file backend.hpp.

Member Data Documentation

◆ DefaultType

constexpr Type mbgl::gfx::Backend::DefaultType = Type::OpenGL
staticconstexpr

Definition at line 19 of file backend.hpp.


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