#include <renderer_backend.hpp>
Definition at line 21 of file renderer_backend.hpp.
◆ RendererBackend() [1/2]
mbgl::gfx::RendererBackend::RendererBackend |
( |
ContextMode |
| ) |
|
|
explicitprotected |
◆ ~RendererBackend()
virtual mbgl::gfx::RendererBackend::~RendererBackend |
( |
| ) |
|
|
virtual |
◆ RendererBackend() [2/2]
◆ activate()
virtual void mbgl::gfx::RendererBackend::activate |
( |
| ) |
|
|
protectedpure virtual |
Called when the backend's GL context needs to be made active or inactive. These are called, as a matched pair, exclusively through BackendScope, in two situations:
- When releasing GL resources during Renderer destruction (Including calling CustomLayerHost::deinitialize during RenderCustomLayer destruction)
- When renderering through Renderer::render() (Including calling CustomLayerHost::initialize for newly added custom layers and CustomLayerHost::deinitialize on layer removal)
◆ contextIsShared()
bool mbgl::gfx::RendererBackend::contextIsShared |
( |
| ) |
const |
|
inline |
◆ createContext()
virtual std::unique_ptr<Context> mbgl::gfx::RendererBackend::createContext |
( |
| ) |
|
|
protectedpure virtual |
◆ deactivate()
virtual void mbgl::gfx::RendererBackend::deactivate |
( |
| ) |
|
|
protectedpure virtual |
◆ getContext() [1/2]
Context& mbgl::gfx::RendererBackend::getContext |
( |
| ) |
|
Returns the device's context.
◆ getContext() [2/2]
template<typename T >
T& mbgl::gfx::RendererBackend::getContext |
( |
| ) |
|
|
inline |
◆ getDefaultRenderable()
virtual Renderable& mbgl::gfx::RendererBackend::getDefaultRenderable |
( |
| ) |
|
|
pure virtual |
Returns a reference to the default surface that should be rendered on.
◆ operator=()
◆ BackendScope
◆ context
std::unique_ptr<Context> mbgl::gfx::RendererBackend::context |
|
protected |
◆ contextMode
const ContextMode mbgl::gfx::RendererBackend::contextMode |
|
protected |
◆ initialized
std::once_flag mbgl::gfx::RendererBackend::initialized |
|
protected |
The documentation for this class was generated from the following file: