[core] Move GLContextMode to its own Renderer header
This commit is contained in:
@@ -156,6 +156,7 @@ set(MBGL_CORE_FILES
|
||||
|
||||
# renderer
|
||||
include/mbgl/renderer/backend_scope.hpp
|
||||
include/mbgl/renderer/mode.hpp
|
||||
include/mbgl/renderer/query.hpp
|
||||
include/mbgl/renderer/renderer.hpp
|
||||
include/mbgl/renderer/renderer_backend.hpp
|
||||
|
||||
@@ -14,15 +14,6 @@ enum class MapMode : EnumType {
|
||||
Still, // a once-off still image
|
||||
};
|
||||
|
||||
// We can avoid redundant GL calls when it is known that the GL context is not
|
||||
// being shared. In a shared GL context case, we need to make sure that the
|
||||
// correct GL configurations are in use - they might have changed between render
|
||||
// calls.
|
||||
enum class GLContextMode : EnumType {
|
||||
Unique,
|
||||
Shared,
|
||||
};
|
||||
|
||||
// We can choose to constrain the map both horizontally or vertically, or only
|
||||
// vertically e.g. while panning.
|
||||
enum class ConstrainMode : EnumType {
|
||||
|
||||
18
include/mbgl/renderer/mode.hpp
Normal file
18
include/mbgl/renderer/mode.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
using EnumType = uint32_t;
|
||||
|
||||
// We can avoid redundant GL calls when it is known that the GL context is not
|
||||
// being shared. In a shared GL context case, we need to make sure that the
|
||||
// correct GL configurations are in use - they might have changed between render
|
||||
// calls.
|
||||
enum class GLContextMode : EnumType {
|
||||
Unique,
|
||||
Shared,
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/map/mode.hpp>
|
||||
#include <mbgl/renderer/query.hpp>
|
||||
#include <mbgl/renderer/mode.hpp>
|
||||
#include <mbgl/annotation/annotation.hpp>
|
||||
#include <mbgl/util/geo.hpp>
|
||||
#include <mbgl/util/geo.hpp>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <mbgl/style/image.hpp>
|
||||
#include <mbgl/style/transition_options.hpp>
|
||||
#include <mbgl/style/layers/custom_layer.hpp>
|
||||
#include <mbgl/renderer/mode.hpp>
|
||||
#include <mbgl/renderer/renderer.hpp>
|
||||
#include <mbgl/renderer/renderer_backend.hpp>
|
||||
#include <mbgl/renderer/backend_scope.hpp>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <mbgl/renderer/render_pass.hpp>
|
||||
#include <mbgl/renderer/render_light.hpp>
|
||||
#include <mbgl/renderer/mode.hpp>
|
||||
#include <mbgl/map/mode.hpp>
|
||||
#include <mbgl/gl/depth_mode.hpp>
|
||||
#include <mbgl/gl/stencil_mode.hpp>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/renderer/mode.hpp>
|
||||
#include <mbgl/renderer/renderer.hpp>
|
||||
#include <mbgl/renderer/render_source_observer.hpp>
|
||||
#include <mbgl/renderer/render_light.hpp>
|
||||
@@ -9,7 +10,6 @@
|
||||
#include <mbgl/style/layer.hpp>
|
||||
#include <mbgl/map/transform_state.hpp>
|
||||
#include <mbgl/map/zoom_history.hpp>
|
||||
#include <mbgl/map/mode.hpp>
|
||||
#include <mbgl/text/glyph_manager_observer.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
Reference in New Issue
Block a user