[core] Introduce mbgl::RendererState

This commit is contained in:
Bruno de Oliveira Abinader
2018-10-17 13:38:11 +02:00
parent b94be6e68f
commit ea51b11dcc
6 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include <mbgl/map/camera.hpp>
#include <mbgl/util/geo.hpp>
namespace mbgl {
class UpdateParameters;
/**
* RendererState acts as a Memento-like object that is able to extract data out of UpdateParameters (an opaque object
* from the public API perspective).
*/
class RendererState {
public:
// Obtains a CameraOptions out of a given UpdateParameters object.
static CameraOptions getCameraOptions(UpdateParameters&, const EdgeInsets& = {});
};
} // namespace mbgl