@@ -6,7 +6,7 @@
|
||||
namespace mbgl {
|
||||
|
||||
// A movable type-erasing function wrapper. This allows to store arbitrary
|
||||
// invokable things (like std::function<>, or the result of a movable-only
|
||||
// invocable things (like std::function<>, or the result of a movable-only
|
||||
// std::bind()) in the queue. Source: http://stackoverflow.com/a/29642072/331379
|
||||
class Message {
|
||||
public:
|
||||
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
/// Get the *sequenced* scheduler for asynchronous tasks.
|
||||
/// Unlike the method above, the returned scheduler
|
||||
/// (once stored) represents a single thread, thus each
|
||||
/// newly scheduled task is guarantied to run after the
|
||||
/// newly scheduled task is guaranteed to run after the
|
||||
/// previously scheduled one.
|
||||
///
|
||||
/// Sequenced scheduler can be used for running tasks
|
||||
|
||||
@@ -213,7 +213,7 @@ public:
|
||||
/// Add a polyline in geographic coordinates, using wide vectors.
|
||||
void addWideVectorPolylineGlobal(const LineString<double>& coordinates, const gfx::PolylineGeneratorOptions&);
|
||||
|
||||
/// return the curent vertex count
|
||||
/// return the current vertex count
|
||||
std::size_t curVertexCount() const;
|
||||
|
||||
bool empty() const { return !(drawables.size() || curVertexCount()); }
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace gfx {
|
||||
/// Graphic primitive type enumeration
|
||||
enum class PrimitiveType : uint8_t {
|
||||
Point, ///< point primitive
|
||||
Line, ///< line primive
|
||||
Line, ///< line primitive
|
||||
Triangle, ///< triangle primitive
|
||||
};
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ protected:
|
||||
/// 1. When releasing GL resources during Renderer destruction
|
||||
/// (Including calling CustomLayerHost::deinitialize during
|
||||
/// RenderCustomLayer destruction)
|
||||
/// 2. When renderering through Renderer::render()
|
||||
/// 2. When rendering through Renderer::render()
|
||||
/// (Including calling CustomLayerHost::initialize for newly added
|
||||
/// custom layers and
|
||||
/// CustomLayerHost::deinitialize on layer removal)
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
* not provide line, fill or symbol layers (those, used by the annotations
|
||||
* implementation).
|
||||
*
|
||||
* Note: in future, annotations implemantation will be moved from the core
|
||||
* Note: in future, annotations implementation will be moved from the core
|
||||
* to platform SDK (see
|
||||
* https://github.com/maplibre/maplibre-plugins-android)
|
||||
* and this flag won't be needed any more.
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
struct RenderFrameStatus {
|
||||
RenderMode mode;
|
||||
bool needsRepaint; // In continous mode, shows that there are ongoig transitions.
|
||||
bool needsRepaint; // In continuous mode, shows that there are ongoig transitions.
|
||||
bool placementChanged;
|
||||
gfx::RenderingStats renderingStats;
|
||||
};
|
||||
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
std::size_t index,
|
||||
std::size_t size) const noexcept;
|
||||
|
||||
/// Update the offset, when this buffer is alread bound to the specified index (unchecked).
|
||||
/// Update the offset, when this buffer is already bound to the specified index (unchecked).
|
||||
void updateVertexBindOffset(const MTLRenderCommandEncoderPtr&,
|
||||
std::size_t offset,
|
||||
std::size_t index,
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
/// @brief Get a specific layer group by index
|
||||
/// @param layerIndex index
|
||||
/// @return the layer group if existant, othewise a shared null pointer
|
||||
/// @return the layer group if existent, otherwise a shared null pointer
|
||||
const LayerGroupBasePtr& getLayerGroup(const int32_t layerIndex) const;
|
||||
|
||||
/// Execute the given function for each contained layer group
|
||||
|
||||
@@ -22,7 +22,7 @@ layout (std140) uniform DebugUBO {
|
||||
|
||||
void main() {
|
||||
// This vertex shader expects a EXTENT x EXTENT quad,
|
||||
// The UV co-ordinates for the overlay texture can be calculated using that knowledge
|
||||
// The UV coordinates for the overlay texture can be calculated using that knowledge
|
||||
v_uv = a_pos / 8192.0;
|
||||
gl_Position = u_matrix * vec4(a_pos * u_overlay_scale, 0, 1);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ FragmentStage vertex vertexMain(thread const VertexStage vertx [[stage_in]],
|
||||
const float4 position = debug.matrix * float4(float2(vertx.pos) * debug.overlay_scale, 0, 1);
|
||||
|
||||
// This vertex shader expects a EXTENT x EXTENT quad,
|
||||
// The UV co-ordinates for the overlay texture can be calculated using that knowledge
|
||||
// The UV coordinates for the overlay texture can be calculated using that knowledge
|
||||
float2 uv = float2(vertx.pos) / 8192.0;
|
||||
|
||||
return {
|
||||
|
||||
@@ -38,7 +38,7 @@ void main() {
|
||||
applySurfaceTransform();
|
||||
|
||||
// This vertex shader expects a EXTENT x EXTENT quad,
|
||||
// The UV co-ordinates for the overlay texture can be calculated using that knowledge
|
||||
// The UV coordinates for the overlay texture can be calculated using that knowledge
|
||||
frag_uv = in_position / 8192.0;
|
||||
}
|
||||
)";
|
||||
|
||||
@@ -43,7 +43,7 @@ fn main(in: VertexInput) -> VertexOutput {
|
||||
out.position = debug.matrix * vec4<f32>(scaled_pos, 0.0, 1.0);
|
||||
|
||||
// This vertex shader expects a EXTENT x EXTENT quad,
|
||||
// The UV co-ordinates for the overlay texture can be calculated using that knowledge
|
||||
// The UV coordinates for the overlay texture can be calculated using that knowledge
|
||||
out.uv = vec2<f32>(f32(in.position.x), f32(in.position.y)) / 8192.0;
|
||||
|
||||
return out;
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace style {
|
||||
`const char *`; return value:
|
||||
* is true when evaluated in a boolean context iff the named member
|
||||
exists
|
||||
* is convertable to a `V` or `V&` when dereferenced
|
||||
* is convertible to a `V` or `V&` when dereferenced
|
||||
* `eachMember(v, [] (const std::string&, const V&) -> std::optional<Error>
|
||||
{...})` -- called only if `isObject(v)`; calls the provided lambda once for
|
||||
each key and value of the object; short-circuits if any call returns an
|
||||
|
||||
@@ -42,7 +42,7 @@ std::string toString(const CanonicalTileID&);
|
||||
} // namespace util
|
||||
|
||||
// Has integer z/x/y coordinates
|
||||
// overscaledZ describes the zoom level this tile is intented to represent, e.g.
|
||||
// overscaledZ describes the zoom level this tile is intended to represent, e.g.
|
||||
// when parsing data z is never larger than the source's maxzoom z/x/y describe
|
||||
// the
|
||||
class OverscaledTileID {
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace util {
|
||||
/// A wrapper around `unordered_map` which uses linear search below some threshold of size.
|
||||
///
|
||||
/// Currently an immutable map, not allowing insert or delete, but could be extended to allow that, with extra cost when
|
||||
/// transitioning over the threshold value, of course. The maped values can be modified via reference accessors, just
|
||||
/// transitioning over the threshold value, of course. The mapped values can be modified via reference accessors, just
|
||||
/// not the set of keys or the keys themselves. Since the small-case elements are stored separately from
|
||||
/// `unordered_map`, we can't use that class' iterators, and its interface is private. A wrapper iterator might allow
|
||||
/// for a better and more complete public interface.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
namespace mbgl {
|
||||
|
||||
/// A movable type-erasing function wrapper. This allows to store arbitrary
|
||||
/// invokable things (like std::function<>, or the result of a movable-only
|
||||
/// invocable things (like std::function<>, or the result of a movable-only
|
||||
/// std::bind()) in the queue. Source:
|
||||
/// http://stackoverflow.com/a/29642072/331379
|
||||
class WorkTask : private util::noncopyable {
|
||||
|
||||
Reference in New Issue
Block a user