[core] Introduce mbgl::RendererState
This commit is contained in:
22
include/mbgl/renderer/renderer_state.hpp
Normal file
22
include/mbgl/renderer/renderer_state.hpp
Normal 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
|
||||
Reference in New Issue
Block a user