rename llmr => mbgl

This commit is contained in:
Konstantin Käfer
2014-07-16 18:53:56 -07:00
parent c1a64dc5fa
commit 4ea281c750
236 changed files with 1199 additions and 1198 deletions

View File

@@ -1,13 +0,0 @@
#ifndef LLMR_GEOMETRY_INTERPOLATE
#define LLMR_GEOMETRY_INTERPOLATE
#include <llmr/geometry/anchor.hpp>
#include <llmr/util/math.hpp>
namespace llmr {
Anchors interpolate(const std::vector<Coordinate> &vertices, float spacing,
float minScale = 0.0f, int start = 0);
}
#endif

View File

@@ -1,21 +0,0 @@
#ifndef LLMR_STYLE_PROPERTY_VALUE
#define LLMR_STYLE_PROPERTY_VALUE
#include <llmr/util/variant.hpp>
#include <llmr/style/function_properties.hpp>
#include <llmr/style/types.hpp>
namespace llmr {
typedef util::variant<
std::string,
TranslateAnchorType,
RotateAnchorType,
Function<bool>,
Function<float>,
Function<Color>
> PropertyValue;
}
#endif

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_GEOMETRY_ANCHOR
#define LLMR_GEOMETRY_ANCHOR
#ifndef MBGL_GEOMETRY_ANCHOR
#define MBGL_GEOMETRY_ANCHOR
#include <vector>
namespace llmr {
namespace mbgl {
struct Anchor {
float x = 0.0f;

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_GEOMETRY_BINPACK
#define LLMR_GEOMETRY_BINPACK
#ifndef MBGL_GEOMETRY_BINPACK
#define MBGL_GEOMETRY_BINPACK
#include <llmr/util/noncopyable.hpp>
#include <llmr/util/rect.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/rect.hpp>
#include <cstdint>
#include <list>
namespace llmr {
namespace mbgl {
template <typename T>
class BinPack : private util::noncopyable {

View File

@@ -1,14 +1,14 @@
#ifndef LLMR_GEOMETRY_BUFFER
#define LLMR_GEOMETRY_BUFFER
#ifndef MBGL_GEOMETRY_BUFFER
#define MBGL_GEOMETRY_BUFFER
#include <llmr/platform/gl.hpp>
#include <llmr/util/noncopyable.hpp>
#include <mbgl/platform/gl.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <cstdlib>
#include <cassert>
#include <stdexcept>
namespace llmr {
namespace mbgl {
template <
size_t item_size,

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_GEOMETRY_DEBUG_FONT_BUFFER
#define LLMR_GEOMETRY_DEBUG_FONT_BUFFER
#ifndef MBGL_GEOMETRY_DEBUG_FONT_BUFFER
#define MBGL_GEOMETRY_DEBUG_FONT_BUFFER
#include "buffer.hpp"
namespace llmr {
namespace mbgl {
class DebugFontBuffer : public Buffer<
4 // 2 bytes per coordinate, 2 coordinates

View File

@@ -1,10 +1,10 @@
#ifndef LLMR_GEOMETRY_TRIANGLE_ELEMENTS_BUFFER
#define LLMR_GEOMETRY_TRIANGLE_ELEMENTS_BUFFER
#ifndef MBGL_GEOMETRY_TRIANGLE_ELEMENTS_BUFFER
#define MBGL_GEOMETRY_TRIANGLE_ELEMENTS_BUFFER
#include <llmr/geometry/buffer.hpp>
#include <llmr/geometry/vao.hpp>
#include <mbgl/geometry/buffer.hpp>
#include <mbgl/geometry/vao.hpp>
namespace llmr {
namespace mbgl {
struct ElementGroup {
VertexArrayObject array;

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_GEOMETRY_FILL_BUFFER
#define LLMR_GEOMETRY_FILL_BUFFER
#ifndef MBGL_GEOMETRY_FILL_BUFFER
#define MBGL_GEOMETRY_FILL_BUFFER
#include "buffer.hpp"
#include <vector>
#include <cstdint>
namespace llmr {
namespace mbgl {
class FillVertexBuffer : public Buffer<
4 // bytes per coordinates (2 * unsigned short == 4 bytes)

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_GEOMETRY_GEOMETRY
#define LLMR_GEOMETRY_GEOMETRY
#ifndef MBGL_GEOMETRY_GEOMETRY
#define MBGL_GEOMETRY_GEOMETRY
#include <llmr/util/pbf.hpp>
#include <llmr/util/noncopyable.hpp>
#include <mbgl/util/pbf.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <cstdlib>
namespace llmr {
namespace mbgl {
class Geometry : private util::noncopyable {

View File

@@ -1,8 +1,8 @@
#ifndef LLMR_GEOMETRY_GLYPH_ATLAS
#define LLMR_GEOMETRY_GLYPH_ATLAS
#ifndef MBGL_GEOMETRY_GLYPH_ATLAS
#define MBGL_GEOMETRY_GLYPH_ATLAS
#include <llmr/geometry/binpack.hpp>
#include <llmr/text/glyph_store.hpp>
#include <mbgl/geometry/binpack.hpp>
#include <mbgl/text/glyph_store.hpp>
#include <string>
#include <set>
@@ -10,7 +10,7 @@
#include <mutex>
#include <atomic>
namespace llmr {
namespace mbgl {
class GlyphAtlas {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_GEOMETRY_ICON_BUFFER
#define LLMR_GEOMETRY_ICON_BUFFER
#ifndef MBGL_GEOMETRY_ICON_BUFFER
#define MBGL_GEOMETRY_ICON_BUFFER
#include "buffer.hpp"
namespace llmr {
namespace mbgl {
class IconVertexBuffer : public Buffer<
4 + // int16 x/y coordinates per vertex (== 4 bytes)

View File

@@ -0,0 +1,13 @@
#ifndef MBGL_GEOMETRY_INTERPOLATE
#define MBGL_GEOMETRY_INTERPOLATE
#include <mbgl/geometry/anchor.hpp>
#include <mbgl/util/math.hpp>
namespace mbgl {
Anchors interpolate(const std::vector<Coordinate> &vertices, float spacing,
float minScale = 0.0f, int start = 0);
}
#endif

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_GEOMETRY_LINE_BUFFER
#define LLMR_GEOMETRY_LINE_BUFFER
#ifndef MBGL_GEOMETRY_LINE_BUFFER
#define MBGL_GEOMETRY_LINE_BUFFER
#include "buffer.hpp"
namespace llmr {
namespace mbgl {
class LineVertexBuffer : public Buffer<
8 // 2 coordinates per vertex + 1 linesofar + 1 extrude coord pair == 4 (== 8 bytes)

View File

@@ -1,7 +1,7 @@
#ifndef LLMR_GEOMETRY_SPRITE_ATLAS
#define LLMR_GEOMETRY_SPRITE_ATLAS
#ifndef MBGL_GEOMETRY_SPRITE_ATLAS
#define MBGL_GEOMETRY_SPRITE_ATLAS
#include <llmr/geometry/binpack.hpp>
#include <mbgl/geometry/binpack.hpp>
#include <string>
#include <map>
@@ -9,7 +9,7 @@
#include <atomic>
#include <set>
namespace llmr {
namespace mbgl {
class Sprite;
class SpritePosition;

View File

@@ -1,10 +1,10 @@
#ifndef LLMR_GEOMETRY_TEXT_BUFFER
#define LLMR_GEOMETRY_TEXT_BUFFER
#ifndef MBGL_GEOMETRY_TEXT_BUFFER
#define MBGL_GEOMETRY_TEXT_BUFFER
#include "buffer.hpp"
#include <array>
namespace llmr {
namespace mbgl {
class TextVertexBuffer : public Buffer <
16,

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_GEOMETRY_VAO
#define LLMR_GEOMETRY_VAO
#ifndef MBGL_GEOMETRY_VAO
#define MBGL_GEOMETRY_VAO
#include <llmr/platform/gl.hpp>
#include <mbgl/platform/gl.hpp>
#include <stdexcept>
namespace llmr {
namespace mbgl {
class VertexArrayObject {
public:

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_GEOMETRY_VERTEX_BUFFER
#define LLMR_GEOMETRY_VERTEX_BUFFER
#ifndef MBGL_GEOMETRY_VERTEX_BUFFER
#define MBGL_GEOMETRY_VERTEX_BUFFER
#include <vector>
#include <cstddef>
#include <cstdint>
#include <cmath>
namespace llmr {
namespace mbgl {
class VertexBuffer {
public:

View File

@@ -1,23 +1,23 @@
#ifndef LLMR_MAP_MAP
#define LLMR_MAP_MAP
#ifndef MBGL_MAP_MAP
#define MBGL_MAP_MAP
#include <uv.h>
#include <llmr/map/view.hpp>
#include <llmr/map/transform.hpp>
#include <llmr/style/style.hpp>
#include <llmr/geometry/glyph_atlas.hpp>
#include <llmr/text/glyph_store.hpp>
#include <llmr/renderer/painter.hpp>
#include <llmr/util/noncopyable.hpp>
#include <llmr/util/texturepool.hpp>
#include <mbgl/map/view.hpp>
#include <mbgl/map/transform.hpp>
#include <mbgl/style/style.hpp>
#include <mbgl/geometry/glyph_atlas.hpp>
#include <mbgl/text/glyph_store.hpp>
#include <mbgl/renderer/painter.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/texturepool.hpp>
#include <cstdint>
#include <string>
#include <map>
namespace llmr {
namespace mbgl {
class Source;
class SpriteAtlas;

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_MAP_RASTER_TILE_DATA
#define LLMR_MAP_RASTER_TILE_DATA
#ifndef MBGL_MAP_RASTER_TILE_DATA
#define MBGL_MAP_RASTER_TILE_DATA
#include <llmr/map/tile_data.hpp>
#include <mbgl/map/tile_data.hpp>
#include <llmr/renderer/raster_bucket.hpp>
#include <mbgl/renderer/raster_bucket.hpp>
namespace llmr {
namespace mbgl {
class RasterTileData : public TileData {
friend class TileParser;

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_MAP_SOURCE
#define LLMR_MAP_SOURCE
#ifndef MBGL_MAP_SOURCE
#define MBGL_MAP_SOURCE
#include <llmr/map/tile.hpp>
#include <llmr/map/tile_data.hpp>
#include <llmr/util/noncopyable.hpp>
#include <llmr/util/time.hpp>
#include <llmr/style/style_source.hpp>
#include <llmr/style/types.hpp>
#include <mbgl/map/tile.hpp>
#include <mbgl/map/tile_data.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/time.hpp>
#include <mbgl/style/style_source.hpp>
#include <mbgl/style/types.hpp>
#include <list>
#include <forward_list>
@@ -16,7 +16,7 @@
#include <map>
#include <set>
namespace llmr {
namespace mbgl {
class TransformState;
class Texturepool;

View File

@@ -1,8 +1,8 @@
#ifndef LLMR_STYLE_SPRITE
#define LLMR_STYLE_SPRITE
#ifndef MBGL_STYLE_SPRITE
#define MBGL_STYLE_SPRITE
#include <llmr/util/raster.hpp>
#include <llmr/util/vec.hpp>
#include <mbgl/util/raster.hpp>
#include <mbgl/util/vec.hpp>
#include <string>
#include <mutex>
@@ -10,7 +10,7 @@
#include <atomic>
#include <unordered_map>
namespace llmr {
namespace mbgl {
class Map;

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_MAP_TILE
#define LLMR_MAP_TILE
#ifndef MBGL_MAP_TILE
#define MBGL_MAP_TILE
#include <llmr/util/vec.hpp>
#include <llmr/util/mat4.hpp>
#include <llmr/util/noncopyable.hpp>
#include <mbgl/util/vec.hpp>
#include <mbgl/util/mat4.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <cstdint>
#include <forward_list>
@@ -11,7 +11,7 @@
#include <bitset>
#include <memory>
namespace llmr {
namespace mbgl {
class TileData;

View File

@@ -1,18 +1,18 @@
#ifndef LLMR_MAP_TILE_DATA
#define LLMR_MAP_TILE_DATA
#ifndef MBGL_MAP_TILE_DATA
#define MBGL_MAP_TILE_DATA
#include <llmr/map/tile.hpp>
#include <llmr/util/noncopyable.hpp>
#include <llmr/platform/platform.hpp>
#include <llmr/geometry/vao.hpp>
#include <llmr/renderer/debug_bucket.hpp>
#include <mbgl/map/tile.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/platform/platform.hpp>
#include <mbgl/geometry/vao.hpp>
#include <mbgl/renderer/debug_bucket.hpp>
#include <cstdint>
#include <string>
#include <memory>
#include <atomic>
namespace llmr {
namespace mbgl {
class Map;
class Painter;

View File

@@ -1,14 +1,14 @@
#ifndef LLMR_MAP_TILE_PARSER
#define LLMR_MAP_TILE_PARSER
#ifndef MBGL_MAP_TILE_PARSER
#define MBGL_MAP_TILE_PARSER
#include <llmr/map/vector_tile.hpp>
#include <llmr/text/placement.hpp>
#include <llmr/text/glyph_store.hpp>
#include <llmr/text/glyph.hpp>
#include <llmr/util/utf.hpp>
#include <llmr/style/filter_expression.hpp>
#include <mbgl/map/vector_tile.hpp>
#include <mbgl/text/placement.hpp>
#include <mbgl/text/glyph_store.hpp>
#include <mbgl/text/glyph.hpp>
#include <mbgl/util/utf.hpp>
#include <mbgl/style/filter_expression.hpp>
namespace llmr {
namespace mbgl {
class Style;
class GlyphAtlas;

View File

@@ -1,16 +1,16 @@
#ifndef LLMR_MAP_TRANSFORM
#define LLMR_MAP_TRANSFORM
#ifndef MBGL_MAP_TRANSFORM
#define MBGL_MAP_TRANSFORM
#include <llmr/util/transition.hpp>
#include <llmr/util/noncopyable.hpp>
#include <llmr/util/uv.hpp>
#include <mbgl/util/transition.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/uv.hpp>
#include "view.hpp"
#include "transform_state.hpp"
#include <forward_list>
namespace llmr {
namespace mbgl {
struct box;

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_MAP_TRANSFORM_STATE
#define LLMR_MAP_TRANSFORM_STATE
#ifndef MBGL_MAP_TRANSFORM_STATE
#define MBGL_MAP_TRANSFORM_STATE
#include <llmr/util/mat4.hpp>
#include <llmr/map/tile.hpp>
#include <mbgl/util/mat4.hpp>
#include <mbgl/map/tile.hpp>
#include <cstdint>
namespace llmr {
namespace mbgl {
class Transform;

View File

@@ -1,18 +1,18 @@
#ifndef LLMR_MAP_VECTOR_TILE
#define LLMR_MAP_VECTOR_TILE
#ifndef MBGL_MAP_VECTOR_TILE
#define MBGL_MAP_VECTOR_TILE
#include <llmr/util/pbf.hpp>
#include <llmr/util/vec.hpp>
#include <llmr/style/value.hpp>
#include <llmr/text/glyph.hpp>
#include <llmr/style/filter_expression.hpp>
#include <mbgl/util/pbf.hpp>
#include <mbgl/util/vec.hpp>
#include <mbgl/style/value.hpp>
#include <mbgl/text/glyph.hpp>
#include <mbgl/style/filter_expression.hpp>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <limits>
namespace llmr {
namespace mbgl {
class BucketDescription;
class VectorTileLayer;

View File

@@ -1,22 +1,22 @@
#ifndef LLMR_MAP_VECTOR_TILE_DATA
#define LLMR_MAP_VECTOR_TILE_DATA
#ifndef MBGL_MAP_VECTOR_TILE_DATA
#define MBGL_MAP_VECTOR_TILE_DATA
#include <llmr/map/tile_data.hpp>
#include <mbgl/map/tile_data.hpp>
#include <llmr/renderer/bucket.hpp>
#include <mbgl/renderer/bucket.hpp>
#include <llmr/geometry/vertex_buffer.hpp>
#include <llmr/geometry/elements_buffer.hpp>
#include <llmr/geometry/fill_buffer.hpp>
#include <llmr/geometry/line_buffer.hpp>
#include <llmr/geometry/icon_buffer.hpp>
#include <llmr/geometry/text_buffer.hpp>
#include <llmr/map/tile_parser.hpp>
#include <mbgl/geometry/vertex_buffer.hpp>
#include <mbgl/geometry/elements_buffer.hpp>
#include <mbgl/geometry/fill_buffer.hpp>
#include <mbgl/geometry/line_buffer.hpp>
#include <mbgl/geometry/icon_buffer.hpp>
#include <mbgl/geometry/text_buffer.hpp>
#include <mbgl/map/tile_parser.hpp>
#include <unordered_map>
namespace llmr {
namespace mbgl {
class VectorTileData : public TileData {

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_MAP_VIEW
#define LLMR_MAP_VIEW
#ifndef MBGL_MAP_VIEW
#define MBGL_MAP_VIEW
#include <llmr/util/time.hpp>
#include <mbgl/util/time.hpp>
namespace llmr {
namespace mbgl {
class Map;
@@ -47,7 +47,7 @@ public:
virtual void notify_map_change(MapChange change, timestamp delay = 0) = 0;
protected:
llmr::Map *map = nullptr;
mbgl::Map *map = nullptr;
};
}

View File

@@ -1,5 +1,5 @@
#ifndef LLMR_MAIN
#define LLMR_MAIN
#ifndef MBGL_MAIN
#define MBGL_MAIN
#include "map/map.hpp"
#include "map/view.hpp"

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_PLATFORM_EVENT
#define LLMR_PLATFORM_EVENT
#ifndef MBGL_PLATFORM_EVENT
#define MBGL_PLATFORM_EVENT
#include <llmr/util/enum.hpp>
#include <mbgl/util/enum.hpp>
#include <cstdint>
namespace llmr {
namespace mbgl {
enum class EventSeverity : uint8_t {
Debug,
@@ -15,7 +15,7 @@ enum class EventSeverity : uint8_t {
Error,
};
LLMR_DEFINE_ENUM_CLASS(EventSeverityClass, EventSeverity, {
MBGL_DEFINE_ENUM_CLASS(EventSeverityClass, EventSeverity, {
{ EventSeverity::Debug, "DEBUG" },
{ EventSeverity::Info, "INFO" },
{ EventSeverity::Test, "TEST" },
@@ -35,7 +35,7 @@ enum class Event : uint8_t {
Sprite,
};
LLMR_DEFINE_ENUM_CLASS(EventClass, Event, {
MBGL_DEFINE_ENUM_CLASS(EventClass, Event, {
{ Event::General, "General" },
{ Event::Setup, "Setup" },
{ Event::Shader, "Shader" },

View File

@@ -1,5 +1,5 @@
#ifndef LLMR_RENDERER_GL
#define LLMR_RENDERER_GL
#ifndef MBGL_RENDERER_GL
#define MBGL_RENDERER_GL
#include <string>
@@ -39,7 +39,7 @@
#include <GL/glext.h>
#endif
namespace llmr {
namespace mbgl {
namespace gl {
// Debug group markers, useful for debuggin on iOS
#if defined(__APPLE__) && defined(DEBUG) && defined(GL_EXT_debug_marker)

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_PLATFORM_LOG
#define LLMR_PLATFORM_LOG
#ifndef MBGL_PLATFORM_LOG
#define MBGL_PLATFORM_LOG
#include "event.hpp"
#include <memory>
#include <string>
namespace llmr {
namespace mbgl {
class LogBackend {
public:

View File

@@ -1,5 +1,5 @@
#ifndef LLMR_PLATFORM_PLATFORM
#define LLMR_PLATFORM_PLATFORM
#ifndef MBGL_PLATFORM_PLATFORM
#define MBGL_PLATFORM_PLATFORM
#include <memory>
#include <functional>
@@ -11,7 +11,7 @@ namespace uv {
class loop;
}
namespace llmr {
namespace mbgl {
namespace platform {
class Request;

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_PLATFORM_REQUEST
#define LLMR_PLATFORM_REQUEST
#ifndef MBGL_PLATFORM_REQUEST
#define MBGL_PLATFORM_REQUEST
#include <string>
#include <functional>
#include <memory>
#include <atomic>
#include <llmr/util/noncopyable.hpp>
#include <mbgl/util/noncopyable.hpp>
// Forward definition.
typedef struct uv_loop_s uv_loop_t;
@@ -16,7 +16,7 @@ namespace uv {
class loop;
}
namespace llmr {
namespace mbgl {
namespace platform {
struct Response;

View File

@@ -1,13 +1,13 @@
#ifndef LLMR_RENDERER_BUCKET
#define LLMR_RENDERER_BUCKET
#ifndef MBGL_RENDERER_BUCKET
#define MBGL_RENDERER_BUCKET
#include <string>
#include <memory>
#include <llmr/map/tile.hpp>
#include <llmr/util/noncopyable.hpp>
#include <llmr/renderer/prerendered_texture.hpp>
#include <mbgl/map/tile.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/renderer/prerendered_texture.hpp>
namespace llmr {
namespace mbgl {
class Painter;
class StyleLayer;

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_RENDERER_DEBUGBUCKET
#define LLMR_RENDERER_DEBUGBUCKET
#ifndef MBGL_RENDERER_DEBUGBUCKET
#define MBGL_RENDERER_DEBUGBUCKET
#include <llmr/renderer/bucket.hpp>
#include <llmr/geometry/debug_font_buffer.hpp>
#include <llmr/geometry/vao.hpp>
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/geometry/debug_font_buffer.hpp>
#include <mbgl/geometry/vao.hpp>
#include <vector>
#include <memory>
@@ -12,7 +12,7 @@
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
#endif
namespace llmr {
namespace mbgl {
class PlainShader;

View File

@@ -1,10 +1,10 @@
#ifndef LLMR_RENDERER_FILLBUCKET
#define LLMR_RENDERER_FILLBUCKET
#ifndef MBGL_RENDERER_FILLBUCKET
#define MBGL_RENDERER_FILLBUCKET
#include <llmr/renderer/bucket.hpp>
#include <llmr/geometry/elements_buffer.hpp>
#include <llmr/geometry/fill_buffer.hpp>
#include <llmr/style/style_bucket.hpp>
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/geometry/elements_buffer.hpp>
#include <mbgl/geometry/fill_buffer.hpp>
#include <mbgl/style/style_bucket.hpp>
#include <clipper/clipper.hpp>
#include <libtess2/tesselator.h>
@@ -16,7 +16,7 @@
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
#endif
namespace llmr {
namespace mbgl {
class Style;
class FillVertexBuffer;

View File

@@ -1,14 +1,14 @@
#ifndef LLMR_RENDERER_FRAME_HISTORY
#define LLMR_RENDERER_FRAME_HISTORY
#ifndef MBGL_RENDERER_FRAME_HISTORY
#define MBGL_RENDERER_FRAME_HISTORY
#include <deque>
#include <cassert>
#include <cmath>
#include <llmr/platform/platform.hpp>
#include <llmr/util/time.hpp>
#include <mbgl/platform/platform.hpp>
#include <mbgl/util/time.hpp>
namespace llmr {
namespace mbgl {
struct FrameSnapshot {
explicit inline FrameSnapshot(timestamp t, float z) : t(t), z(z) {}

View File

@@ -1,10 +1,10 @@
#ifndef LLMR_RENDERER_ICONBUCKET
#define LLMR_RENDERER_ICONBUCKET
#ifndef MBGL_RENDERER_ICONBUCKET
#define MBGL_RENDERER_ICONBUCKET
#include <llmr/renderer/bucket.hpp>
#include <llmr/geometry/elements_buffer.hpp>
#include <llmr/geometry/icon_buffer.hpp>
#include <llmr/style/style_bucket.hpp>
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/geometry/elements_buffer.hpp>
#include <mbgl/geometry/icon_buffer.hpp>
#include <mbgl/style/style_bucket.hpp>
#include <vector>
#include <memory>
@@ -13,7 +13,7 @@
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
#endif
namespace llmr {
namespace mbgl {
class Style;
class IconVertexBuffer;

View File

@@ -1,16 +1,16 @@
#ifndef LLMR_RENDERER_LINEBUCKET
#define LLMR_RENDERER_LINEBUCKET
#ifndef MBGL_RENDERER_LINEBUCKET
#define MBGL_RENDERER_LINEBUCKET
#include "bucket.hpp"
#include <llmr/geometry/vao.hpp>
#include <llmr/geometry/elements_buffer.hpp>
#include <llmr/geometry/line_buffer.hpp>
#include <llmr/style/style_bucket.hpp>
#include <mbgl/geometry/vao.hpp>
#include <mbgl/geometry/elements_buffer.hpp>
#include <mbgl/geometry/line_buffer.hpp>
#include <mbgl/style/style_bucket.hpp>
#include <memory>
#include <vector>
namespace llmr {
namespace mbgl {
class Style;
class LineVertexBuffer;

View File

@@ -1,33 +1,33 @@
#ifndef LLMR_RENDERER_PAINTER
#define LLMR_RENDERER_PAINTER
#ifndef MBGL_RENDERER_PAINTER
#define MBGL_RENDERER_PAINTER
#include <llmr/map/tile_data.hpp>
#include <llmr/geometry/vao.hpp>
#include <llmr/geometry/vertex_buffer.hpp>
#include <llmr/util/mat4.hpp>
#include <llmr/util/noncopyable.hpp>
#include <llmr/renderer/frame_history.hpp>
#include <llmr/style/types.hpp>
#include <mbgl/map/tile_data.hpp>
#include <mbgl/geometry/vao.hpp>
#include <mbgl/geometry/vertex_buffer.hpp>
#include <mbgl/util/mat4.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/renderer/frame_history.hpp>
#include <mbgl/style/types.hpp>
#include <llmr/shader/plain_shader.hpp>
#include <llmr/shader/outline_shader.hpp>
#include <llmr/shader/pattern_shader.hpp>
#include <llmr/shader/line_shader.hpp>
#include <llmr/shader/linejoin_shader.hpp>
#include <llmr/shader/icon_shader.hpp>
#include <llmr/shader/raster_shader.hpp>
#include <llmr/shader/text_shader.hpp>
#include <llmr/shader/dot_shader.hpp>
#include <llmr/shader/composite_shader.hpp>
#include <llmr/shader/gaussian_shader.hpp>
#include <mbgl/shader/plain_shader.hpp>
#include <mbgl/shader/outline_shader.hpp>
#include <mbgl/shader/pattern_shader.hpp>
#include <mbgl/shader/line_shader.hpp>
#include <mbgl/shader/linejoin_shader.hpp>
#include <mbgl/shader/icon_shader.hpp>
#include <mbgl/shader/raster_shader.hpp>
#include <mbgl/shader/text_shader.hpp>
#include <mbgl/shader/dot_shader.hpp>
#include <mbgl/shader/composite_shader.hpp>
#include <mbgl/shader/gaussian_shader.hpp>
#include <llmr/map/transform_state.hpp>
#include <mbgl/map/transform_state.hpp>
#include <map>
#include <unordered_map>
#include <set>
namespace llmr {
namespace mbgl {
class Transform;
class Style;

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_RENDERER_PRERENDERED_TEXTURE
#define LLMR_RENDERER_PRERENDERED_TEXTURE
#ifndef MBGL_RENDERER_PRERENDERED_TEXTURE
#define MBGL_RENDERER_PRERENDERED_TEXTURE
#include <llmr/util/noncopyable.hpp>
#include <llmr/platform/gl.hpp>
#include <llmr/style/rasterize_properties.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/platform/gl.hpp>
#include <mbgl/style/rasterize_properties.hpp>
namespace llmr {
namespace mbgl {
class Painter;

View File

@@ -1,10 +1,10 @@
#ifndef LLMR_RENDERER_RASTERBUCKET
#define LLMR_RENDERER_RASTERBUCKET
#ifndef MBGL_RENDERER_RASTERBUCKET
#define MBGL_RENDERER_RASTERBUCKET
#include <llmr/renderer/bucket.hpp>
#include <llmr/util/raster.hpp>
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/util/raster.hpp>
namespace llmr {
namespace mbgl {
class RasterShader;
class VertexBuffer;

View File

@@ -1,19 +1,19 @@
#ifndef LLMR_RENDERER_TEXTBUCKET
#define LLMR_RENDERER_TEXTBUCKET
#ifndef MBGL_RENDERER_TEXTBUCKET
#define MBGL_RENDERER_TEXTBUCKET
#include "bucket.hpp"
#include <llmr/geometry/vao.hpp>
#include <llmr/geometry/elements_buffer.hpp>
#include <llmr/map/vector_tile.hpp>
#include <llmr/text/types.hpp>
#include <llmr/text/glyph.hpp>
#include <llmr/style/style_bucket.hpp>
#include <mbgl/geometry/vao.hpp>
#include <mbgl/geometry/elements_buffer.hpp>
#include <mbgl/map/vector_tile.hpp>
#include <mbgl/text/types.hpp>
#include <mbgl/text/glyph.hpp>
#include <mbgl/style/style_bucket.hpp>
#include <memory>
#include <map>
#include <vector>
namespace llmr {
namespace mbgl {
class Style;
class TextVertexBuffer;

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_COMPOSITE_SHADER
#define LLMR_SHADER_COMPOSITE_SHADER
#ifndef MBGL_SHADER_COMPOSITE_SHADER
#define MBGL_SHADER_COMPOSITE_SHADER
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class CompositeShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_SHADER_DOT
#define LLMR_SHADER_SHADER_DOT
#ifndef MBGL_SHADER_SHADER_DOT
#define MBGL_SHADER_SHADER_DOT
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class DotShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_RENDERER_SHADER_GAUSSIAN
#define LLMR_RENDERER_SHADER_GAUSSIAN
#ifndef MBGL_RENDERER_SHADER_GAUSSIAN
#define MBGL_RENDERER_SHADER_GAUSSIAN
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class GaussianShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_SHADER_ICON
#define LLMR_SHADER_SHADER_ICON
#ifndef MBGL_SHADER_SHADER_ICON
#define MBGL_SHADER_SHADER_ICON
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class IconShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_SHADER_LINE
#define LLMR_SHADER_SHADER_LINE
#ifndef MBGL_SHADER_SHADER_LINE
#define MBGL_SHADER_SHADER_LINE
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class LineShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_SHADER_LINEJOIN
#define LLMR_SHADER_SHADER_LINEJOIN
#ifndef MBGL_SHADER_SHADER_LINEJOIN
#define MBGL_SHADER_SHADER_LINEJOIN
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class LinejoinShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_SHADER_OUTLINE
#define LLMR_SHADER_SHADER_OUTLINE
#ifndef MBGL_SHADER_SHADER_OUTLINE
#define MBGL_SHADER_SHADER_OUTLINE
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class OutlineShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_SHADER_PATTERN
#define LLMR_SHADER_SHADER_PATTERN
#ifndef MBGL_SHADER_SHADER_PATTERN
#define MBGL_SHADER_SHADER_PATTERN
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class PatternShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_SHADER_PLAIN
#define LLMR_SHADER_SHADER_PLAIN
#ifndef MBGL_SHADER_SHADER_PLAIN
#define MBGL_SHADER_SHADER_PLAIN
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class PlainShader : public Shader {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_RENDERER_SHADER_RASTER
#define LLMR_RENDERER_SHADER_RASTER
#ifndef MBGL_RENDERER_SHADER_RASTER
#define MBGL_RENDERER_SHADER_RASTER
#include <llmr/shader/shader.hpp>
#include <mbgl/shader/shader.hpp>
namespace llmr {
namespace mbgl {
class RasterShader : public Shader {
public:

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_RENDERER_SHADER
#define LLMR_RENDERER_SHADER
#ifndef MBGL_RENDERER_SHADER
#define MBGL_RENDERER_SHADER
#include <cstdint>
#include <array>
#include <llmr/util/noncopyable.hpp>
#include <mbgl/util/noncopyable.hpp>
namespace llmr {
namespace mbgl {
class Shader : private util::noncopyable {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_SHADER_TEXT_SHADER
#define LLMR_SHADER_TEXT_SHADER
#ifndef MBGL_SHADER_TEXT_SHADER
#define MBGL_SHADER_TEXT_SHADER
#include "shader.hpp"
namespace llmr {
namespace mbgl {
class TextShader : public Shader {
public:

View File

@@ -1,13 +1,13 @@
#ifndef LLMR_STYLE_APPLIED_CLASS_PROPERTIES
#define LLMR_STYLE_APPLIED_CLASS_PROPERTIES
#ifndef MBGL_STYLE_APPLIED_CLASS_PROPERTIES
#define MBGL_STYLE_APPLIED_CLASS_PROPERTIES
#include <llmr/style/property_value.hpp>
#include <llmr/style/class_dictionary.hpp>
#include <llmr/util/time.hpp>
#include <mbgl/style/property_value.hpp>
#include <mbgl/style/class_dictionary.hpp>
#include <mbgl/util/time.hpp>
#include <list>
namespace llmr {
namespace mbgl {
class AppliedClassProperty {
public:

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_STYLE_CLASS_DICTIONARY
#define LLMR_STYLE_CLASS_DICTIONARY
#ifndef MBGL_STYLE_CLASS_DICTIONARY
#define MBGL_STYLE_CLASS_DICTIONARY
#include <cstdint>
#include <string>
#include <unordered_map>
namespace llmr {
namespace mbgl {
enum class ClassID : uint32_t {
Fallback = 0, // These values are from the fallback properties

View File

@@ -1,13 +1,13 @@
#ifndef LLMR_STYLE_CLASS_PROPERTIES
#define LLMR_STYLE_CLASS_PROPERTIES
#ifndef MBGL_STYLE_CLASS_PROPERTIES
#define MBGL_STYLE_CLASS_PROPERTIES
#include <llmr/style/property_key.hpp>
#include <llmr/style/property_value.hpp>
#include <llmr/style/property_transition.hpp>
#include <mbgl/style/property_key.hpp>
#include <mbgl/style/property_value.hpp>
#include <mbgl/style/property_transition.hpp>
#include <map>
namespace llmr {
namespace mbgl {
class ClassProperties {
public:

View File

@@ -1,13 +1,13 @@
#ifndef LLMR_STYLE_FILTER_COMPARISON
#define LLMR_STYLE_FILTER_COMPARISON
#ifndef MBGL_STYLE_FILTER_COMPARISON
#define MBGL_STYLE_FILTER_COMPARISON
#include <llmr/style/value.hpp>
#include <mbgl/style/value.hpp>
#include <vector>
#include <string>
#include <iosfwd>
namespace llmr {
namespace mbgl {
class FilterComparison {
public:

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_STYLE_FILTER_COMPARISON_PRIVATE
#define LLMR_STYLE_FILTER_COMPARISON_PRIVATE
#ifndef MBGL_STYLE_FILTER_COMPARISON_PRIVATE
#define MBGL_STYLE_FILTER_COMPARISON_PRIVATE
#include "filter_comparison.hpp"
namespace llmr {
namespace mbgl {
template <typename Extractor>
inline bool FilterComparison::compare(const Extractor &extractor) const {

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_STYLE_FILTER_EXPRESSION
#define LLMR_STYLE_FILTER_EXPRESSION
#ifndef MBGL_STYLE_FILTER_EXPRESSION
#define MBGL_STYLE_FILTER_EXPRESSION
#include <llmr/style/filter_comparison.hpp>
#include <llmr/util/recursive_wrapper.hpp>
#include <mbgl/style/filter_comparison.hpp>
#include <mbgl/util/recursive_wrapper.hpp>
#include <iosfwd>
namespace llmr {
namespace mbgl {
class FilterExpression {
public:

View File

@@ -1,10 +1,10 @@
#ifndef LLMR_STYLE_FILTER_EXPRESSION_PRIVATE
#define LLMR_STYLE_FILTER_EXPRESSION_PRIVATE
#ifndef MBGL_STYLE_FILTER_EXPRESSION_PRIVATE
#define MBGL_STYLE_FILTER_EXPRESSION_PRIVATE
#include "filter_expression.hpp"
#include "filter_comparison_private.hpp"
namespace llmr {
namespace mbgl {
template <typename Extractor>
bool FilterExpression::compare(const Extractor &extractor) const {

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_STYLE_FUNCTION_PROPERTIES
#define LLMR_STYLE_FUNCTION_PROPERTIES
#ifndef MBGL_STYLE_FUNCTION_PROPERTIES
#define MBGL_STYLE_FUNCTION_PROPERTIES
#include <llmr/util/variant.hpp>
#include <mbgl/util/variant.hpp>
#include <vector>
namespace llmr {
namespace mbgl {
template <typename T>
struct ConstantFunction {

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_STYLE_PROPERTY_FALLBACK
#define LLMR_STYLE_PROPERTY_FALLBACK
#ifndef MBGL_STYLE_PROPERTY_FALLBACK
#define MBGL_STYLE_PROPERTY_FALLBACK
#include <llmr/style/property_key.hpp>
#include <llmr/style/property_value.hpp>
#include <mbgl/style/property_key.hpp>
#include <mbgl/style/property_value.hpp>
#include <map>
namespace llmr {
namespace mbgl {
class PropertyFallbackValue {
public:

View File

@@ -1,7 +1,7 @@
#ifndef LLMR_STYLE_PROPERTY_KEY
#define LLMR_STYLE_PROPERTY_KEY
#ifndef MBGL_STYLE_PROPERTY_KEY
#define MBGL_STYLE_PROPERTY_KEY
namespace llmr {
namespace mbgl {
enum class PropertyKey {
FillAntialias,

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_STYLE_PROPERTY_TRANSITION
#define LLMR_STYLE_PROPERTY_TRANSITION
#ifndef MBGL_STYLE_PROPERTY_TRANSITION
#define MBGL_STYLE_PROPERTY_TRANSITION
#include <cstdint>
namespace llmr {
namespace mbgl {
struct PropertyTransition {
uint16_t duration = 0;

View File

@@ -0,0 +1,21 @@
#ifndef MBGL_STYLE_PROPERTY_VALUE
#define MBGL_STYLE_PROPERTY_VALUE
#include <mbgl/util/variant.hpp>
#include <mbgl/style/function_properties.hpp>
#include <mbgl/style/types.hpp>
namespace mbgl {
typedef util::variant<
std::string,
TranslateAnchorType,
RotateAnchorType,
Function<bool>,
Function<float>,
Function<Color>
> PropertyValue;
}
#endif

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_STYLE_RASTERIZE_PROPERTIES
#define LLMR_STYLE_RASTERIZE_PROPERTIES
#ifndef MBGL_STYLE_RASTERIZE_PROPERTIES
#define MBGL_STYLE_RASTERIZE_PROPERTIES
#include <llmr/style/function_properties.hpp>
#include <mbgl/style/function_properties.hpp>
namespace llmr {
namespace mbgl {
// The calculated properties for a layer in a tile.
class RasterizedProperties {

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_STYLE_STYLE
#define LLMR_STYLE_STYLE
#ifndef MBGL_STYLE_STYLE
#define MBGL_STYLE_STYLE
#include <llmr/style/property_transition.hpp>
#include <llmr/style/style_source.hpp>
#include <mbgl/style/property_transition.hpp>
#include <mbgl/style/style_source.hpp>
#include <llmr/util/time.hpp>
#include <llmr/util/uv.hpp>
#include <mbgl/util/time.hpp>
#include <mbgl/util/uv.hpp>
#include <cstdint>
#include <map>
@@ -15,7 +15,7 @@
#include <set>
#include <memory>
namespace llmr {
namespace mbgl {
class Sprite;
class StyleLayer;

View File

@@ -1,16 +1,16 @@
#ifndef LLMR_STYLE_STYLE_BUCKET
#define LLMR_STYLE_STYLE_BUCKET
#ifndef MBGL_STYLE_STYLE_BUCKET
#define MBGL_STYLE_STYLE_BUCKET
#include <llmr/style/types.hpp>
#include <llmr/style/filter_expression.hpp>
#include <llmr/style/style_source.hpp>
#include <llmr/util/vec.hpp>
#include <llmr/util/variant.hpp>
#include <mbgl/style/types.hpp>
#include <mbgl/style/filter_expression.hpp>
#include <mbgl/style/style_source.hpp>
#include <mbgl/util/vec.hpp>
#include <mbgl/util/variant.hpp>
#include <memory>
#include <forward_list>
namespace llmr {
namespace mbgl {
class Source;

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_STYLE_STYLE_LAYER
#define LLMR_STYLE_STYLE_LAYER
#ifndef MBGL_STYLE_STYLE_LAYER
#define MBGL_STYLE_STYLE_LAYER
#include <llmr/style/class_dictionary.hpp>
#include <llmr/style/class_properties.hpp>
#include <llmr/style/style_properties.hpp>
#include <llmr/style/rasterize_properties.hpp>
#include <llmr/style/applied_class_properties.hpp>
#include <mbgl/style/class_dictionary.hpp>
#include <mbgl/style/class_properties.hpp>
#include <mbgl/style/style_properties.hpp>
#include <mbgl/style/rasterize_properties.hpp>
#include <mbgl/style/applied_class_properties.hpp>
#include <vector>
#include <memory>
@@ -13,7 +13,7 @@
#include <map>
#include <set>
namespace llmr {
namespace mbgl {
class StyleBucket;
class StyleLayerGroup;

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_STYLE_STYLE_LAYER_GROUP
#define LLMR_STYLE_STYLE_LAYER_GROUP
#ifndef MBGL_STYLE_STYLE_LAYER_GROUP
#define MBGL_STYLE_STYLE_LAYER_GROUP
#include <llmr/style/style_layer.hpp>
#include <mbgl/style/style_layer.hpp>
#include <vector>
namespace llmr {
namespace mbgl {
class StyleLayerGroup {
public:

View File

@@ -1,19 +1,19 @@
#ifndef LLMR_STYLE_STYLE_PARSER
#define LLMR_STYLE_STYLE_PARSER
#ifndef MBGL_STYLE_STYLE_PARSER
#define MBGL_STYLE_STYLE_PARSER
#include <rapidjson/document.h>
#include <llmr/style/style.hpp>
#include <llmr/style/style_source.hpp>
#include <llmr/style/filter_expression.hpp>
#include <llmr/style/class_properties.hpp>
#include <llmr/style/rasterize_properties.hpp>
#include <llmr/style/style_bucket.hpp>
#include <mbgl/style/style.hpp>
#include <mbgl/style/style_source.hpp>
#include <mbgl/style/filter_expression.hpp>
#include <mbgl/style/class_properties.hpp>
#include <mbgl/style/rasterize_properties.hpp>
#include <mbgl/style/style_bucket.hpp>
#include <unordered_map>
#include <forward_list>
#include <tuple>
namespace llmr {
namespace mbgl {
enum class ClassID : uint32_t;

View File

@@ -1,16 +1,16 @@
#ifndef LLMR_STYLE_STYLE_PROPERTIES
#define LLMR_STYLE_STYLE_PROPERTIES
#ifndef MBGL_STYLE_STYLE_PROPERTIES
#define MBGL_STYLE_STYLE_PROPERTIES
#include <llmr/util/variant.hpp>
#include <llmr/style/types.hpp>
#include <llmr/style/function_properties.hpp>
#include <mbgl/util/variant.hpp>
#include <mbgl/style/types.hpp>
#include <mbgl/style/function_properties.hpp>
#include <array>
#include <string>
#include <type_traits>
#include <memory>
namespace llmr {
namespace mbgl {
struct FillProperties {
FillProperties() {}

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_STYLE_STYLE_SOURCE
#define LLMR_STYLE_STYLE_SOURCE
#ifndef MBGL_STYLE_STYLE_SOURCE
#define MBGL_STYLE_STYLE_SOURCE
#include <llmr/style/types.hpp>
#include <mbgl/style/types.hpp>
#include <memory>
namespace llmr {
namespace mbgl {
class Source;

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_STYLE_TYPES
#define LLMR_STYLE_TYPES
#ifndef MBGL_STYLE_TYPES
#define MBGL_STYLE_TYPES
#include <llmr/util/enum.hpp>
#include <mbgl/util/enum.hpp>
#include <string>
#include <array>
namespace llmr {
namespace mbgl {
// Stores a premultiplied color, with all four channels ranging from 0..1
typedef std::array<float, 4> Color;
@@ -22,7 +22,7 @@ enum class StyleLayerType : uint8_t {
Background
};
LLMR_DEFINE_ENUM_CLASS(StyleLayerTypeClass, StyleLayerType, {
MBGL_DEFINE_ENUM_CLASS(StyleLayerTypeClass, StyleLayerType, {
{ StyleLayerType::Unknown, "unknown" },
{ StyleLayerType::Fill, "fill" },
{ StyleLayerType::Line, "line" },

View File

@@ -1,13 +1,13 @@
#ifndef LLMR_STYLE_VALUE
#define LLMR_STYLE_VALUE
#ifndef MBGL_STYLE_VALUE
#define MBGL_STYLE_VALUE
#include <llmr/util/variant.hpp>
#include <llmr/util/pbf.hpp>
#include <mbgl/util/variant.hpp>
#include <mbgl/util/pbf.hpp>
#include <cstdlib>
#include <cerrno>
namespace llmr {
namespace mbgl {
typedef util::variant<bool, int64_t, uint64_t, double, std::string> Value;

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_STYLE_VALUE_COMPARISON
#define LLMR_STYLE_VALUE_COMPARISON
#ifndef MBGL_STYLE_VALUE_COMPARISON
#define MBGL_STYLE_VALUE_COMPARISON
#include "value.hpp"
#include <cstdlib>
#include <cerrno>
namespace llmr {
namespace mbgl {
namespace util {

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_TEXT_COLLISION
#define LLMR_TEXT_COLLISION
#ifndef MBGL_TEXT_COLLISION
#define MBGL_TEXT_COLLISION
#include <llmr/text/types.hpp>
#include <mbgl/text/types.hpp>
namespace llmr {
namespace mbgl {
class Collision {

View File

@@ -1,13 +1,13 @@
#ifndef LLMR_TEXT_GLYPH
#define LLMR_TEXT_GLYPH
#ifndef MBGL_TEXT_GLYPH
#define MBGL_TEXT_GLYPH
#include <llmr/util/rect.hpp>
#include <mbgl/util/rect.hpp>
#include <cstdint>
#include <vector>
#include <map>
namespace llmr {
namespace mbgl {
typedef std::pair<uint16_t, uint16_t> GlyphRange;

View File

@@ -1,8 +1,8 @@
#ifndef LLMR_TEXT_GLYPH_STORE
#define LLMR_TEXT_GLYPH_STORE
#ifndef MBGL_TEXT_GLYPH_STORE
#define MBGL_TEXT_GLYPH_STORE
#include <llmr/text/glyph.hpp>
#include <llmr/util/pbf.hpp>
#include <mbgl/text/glyph.hpp>
#include <mbgl/util/pbf.hpp>
#include <cstdint>
#include <vector>
@@ -11,7 +11,7 @@
#include <set>
#include <unordered_map>
namespace llmr {
namespace mbgl {
class SDFGlyph {

View File

@@ -1,13 +1,13 @@
#ifndef LLMR_TEXT_PLACEMENT
#define LLMR_TEXT_PLACEMENT
#ifndef MBGL_TEXT_PLACEMENT
#define MBGL_TEXT_PLACEMENT
#include <llmr/text/collision.hpp>
#include <llmr/geometry/geometry.hpp>
#include <llmr/util/vec.hpp>
#include <llmr/text/glyph.hpp>
#include <mbgl/text/collision.hpp>
#include <mbgl/geometry/geometry.hpp>
#include <mbgl/util/vec.hpp>
#include <mbgl/text/glyph.hpp>
#include <vector>
namespace llmr {
namespace mbgl {
class TextBucket;
class StyleBucketText;

View File

@@ -1,13 +1,13 @@
#ifndef LLMR_TEXT_ROTATION_RANGE
#define LLMR_TEXT_ROTATION_RANGE
#ifndef MBGL_TEXT_ROTATION_RANGE
#define MBGL_TEXT_ROTATION_RANGE
#include <llmr/util/math.hpp>
#include <llmr/text/types.hpp>
#include <mbgl/util/math.hpp>
#include <mbgl/text/types.hpp>
#include <vector>
#include <cassert>
namespace llmr {
namespace mbgl {
/*
* Combine an array of collision ranges to form a continuous

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_TEXT_TYPES
#define LLMR_TEXT_TYPES
#ifndef MBGL_TEXT_TYPES
#define MBGL_TEXT_TYPES
#include <llmr/util/vec.hpp>
#include <llmr/util/rect.hpp>
#include <mbgl/util/vec.hpp>
#include <mbgl/util/rect.hpp>
#include <array>
#include <vector>
namespace llmr {
namespace mbgl {
typedef vec2<float> CollisionPoint;
typedef vec2<float> CollisionAnchor;

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_UTIL_CLIP_IDS
#define LLMR_UTIL_CLIP_IDS
#ifndef MBGL_UTIL_CLIP_IDS
#define MBGL_UTIL_CLIP_IDS
#include <llmr/map/tile.hpp>
#include <mbgl/map/tile.hpp>
#include <list>
#include <set>
#include <map>
namespace llmr {
namespace mbgl {
static constexpr uint8_t clipMask[9] { 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC, 0xFE, 0xFF };

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_UTIL_CONSTANTS
#define LLMR_UTIL_CONSTANTS
#ifndef MBGL_UTIL_CONSTANTS
#define MBGL_UTIL_CONSTANTS
#include <cmath>
#include "vec.hpp"
namespace llmr {
namespace mbgl {
namespace util {

View File

@@ -1,10 +1,10 @@
#ifndef LLMR_UTIL_ENUM
#define LLMR_UTIL_ENUM
#ifndef MBGL_UTIL_ENUM
#define MBGL_UTIL_ENUM
#include <iosfwd>
#include <string>
namespace llmr {
namespace mbgl {
template <typename Type>
struct EnumValue {
@@ -44,9 +44,9 @@ public:
inline constexpr operator Type() const { return value; }
};
#define LLMR_DEFINE_ENUM_CLASS(name, type, strings...) \
const constexpr ::llmr::EnumValue<type> type##_names[] = strings; \
using name = ::llmr::Enum<type, type##_names, sizeof(type##_names) / sizeof(::llmr::EnumValue<type>)>; \
#define MBGL_DEFINE_ENUM_CLASS(name, type, strings...) \
const constexpr ::mbgl::EnumValue<type> type##_names[] = strings; \
using name = ::mbgl::Enum<type, type##_names, sizeof(type##_names) / sizeof(::mbgl::EnumValue<type>)>; \
inline std::ostream& operator<<(std::ostream& os, type t) { return os << name(t).str(); }
}

View File

@@ -1,10 +1,10 @@
#ifndef LLMR_UTIL_ERROR
#define LLMR_UTIL_ERROR
#ifndef MBGL_UTIL_ERROR
#define MBGL_UTIL_ERROR
#include <stdexcept>
#include <string>
namespace llmr {
namespace mbgl {
namespace error {
struct style_parse : std::exception {

View File

@@ -1,11 +1,11 @@
#ifndef LLMR_UTIL_IMAGE
#define LLMR_UTIL_IMAGE
#ifndef MBGL_UTIL_IMAGE
#define MBGL_UTIL_IMAGE
#include <string>
#include <cstring>
#include <stdexcept>
namespace llmr {
namespace mbgl {
namespace util {
std::string compress_png(int width, int height, void *rgba, bool flip = false);

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_UTIL_IO
#define LLMR_UTIL_IO
#ifndef MBGL_UTIL_IO
#define MBGL_UTIL_IO
#include <string>
namespace llmr {
namespace mbgl {
namespace util {
void write_file(const std::string &filename, const std::string &data);

View File

@@ -20,12 +20,12 @@
//
// 3. This notice may not be removed or altered from any source distribution.
#ifndef LLMR_UTIL_MAT4
#define LLMR_UTIL_MAT4
#ifndef MBGL_UTIL_MAT4
#define MBGL_UTIL_MAT4
#include <array>
namespace llmr {
namespace mbgl {
typedef std::array<float, 16> mat4;

View File

@@ -1,12 +1,12 @@
#ifndef LLMR_UTIL_MATH
#define LLMR_UTIL_MATH
#ifndef MBGL_UTIL_MATH
#define MBGL_UTIL_MATH
#include <cmath>
#include <array>
#include "vec.hpp"
namespace llmr {
namespace mbgl {
namespace util {

View File

@@ -1,7 +1,7 @@
#ifndef LLMR_UTIL_NONCOPYABLE
#define LLMR_UTIL_NONCOPYABLE
#ifndef MBGL_UTIL_NONCOPYABLE
#define MBGL_UTIL_NONCOPYABLE
namespace llmr { namespace util {
namespace mbgl { namespace util {
namespace non_copyable_
{
@@ -20,4 +20,4 @@ typedef non_copyable_::noncopyable noncopyable;
}}
#endif //LLMR_UTIL_NONCOPYABLE
#endif

View File

@@ -1,5 +1,5 @@
#ifndef LLMR_UTIL_PBF
#define LLMR_UTIL_PBF
#ifndef MBGL_UTIL_PBF
#define MBGL_UTIL_PBF
/*
* Some parts are from upb - a minimalist implementation of protocol buffers.
@@ -11,7 +11,7 @@
#include <string>
#include <cstring>
namespace llmr {
namespace mbgl {
struct pbf {
struct exception : std::exception { const char *what() const noexcept { return "pbf exception"; } };
@@ -179,6 +179,6 @@ void pbf::skipBytes(uint32_t bytes) {
data += bytes;
}
} // end namespace llmr
} // end namespace mbgl
#endif

View File

@@ -1,9 +1,9 @@
#ifndef LLMR_UTIL_RASTER
#define LLMR_UTIL_RASTER
#ifndef MBGL_UTIL_RASTER
#define MBGL_UTIL_RASTER
#include <llmr/util/transition.hpp>
#include <llmr/util/texturepool.hpp>
#include <llmr/util/image.hpp>
#include <mbgl/util/transition.hpp>
#include <mbgl/util/texturepool.hpp>
#include <mbgl/util/image.hpp>
#include <string>
#include <mutex>
@@ -11,7 +11,7 @@
typedef struct uv_loop_s uv_loop_t;
namespace llmr {
namespace mbgl {
class Raster : public std::enable_shared_from_this<Raster> {

View File

@@ -1,7 +1,7 @@
#ifndef LLMR_UTIL_RECT
#define LLMR_UTIL_RECT
#ifndef MBGL_UTIL_RECT
#define MBGL_UTIL_RECT
namespace llmr {
namespace mbgl {
template <typename T>
struct Rect {

View File

@@ -3,7 +3,7 @@
#include <utility>
namespace llmr { namespace util {
namespace mbgl { namespace util {
template <typename T>
class recursive_wrapper

View File

@@ -1,5 +1,5 @@
#ifndef LLMR_UTIL_STD
#define LLMR_UTIL_STD
#ifndef MBGL_UTIL_STD
#define MBGL_UTIL_STD
#include <memory>
@@ -13,7 +13,7 @@ template<typename T, typename ...Args>
}
namespace llmr {
namespace mbgl {
namespace util {
template <typename Container, typename ForwardIterator, typename Predicate>

Some files were not shown because too many files have changed in this diff Show More