Tile is now the main base class; RasterTile, VectorTile, etc are its subclasses. GeometryTileData and its subclasses form the piece that's passed to the worker.
41 lines
914 B
C++
41 lines
914 B
C++
#pragma once
|
|
|
|
#include <mbgl/map/mode.hpp>
|
|
#include <mbgl/geometry/debug_font_buffer.hpp>
|
|
#include <mbgl/geometry/vao.hpp>
|
|
#include <mbgl/util/chrono.hpp>
|
|
|
|
namespace mbgl {
|
|
|
|
class OverscaledTileID;
|
|
class PlainShader;
|
|
|
|
namespace gl {
|
|
class ObjectStore;
|
|
}
|
|
|
|
class DebugBucket : private util::noncopyable {
|
|
public:
|
|
DebugBucket(const OverscaledTileID& id,
|
|
bool renderable,
|
|
bool complete,
|
|
optional<Timestamp> modified,
|
|
optional<Timestamp> expires,
|
|
MapDebugOptions);
|
|
|
|
void drawLines(PlainShader&, gl::ObjectStore&);
|
|
void drawPoints(PlainShader&, gl::ObjectStore&);
|
|
|
|
const bool renderable;
|
|
const bool complete;
|
|
const optional<Timestamp> modified;
|
|
const optional<Timestamp> expires;
|
|
const MapDebugOptions debugMode;
|
|
|
|
private:
|
|
DebugFontBuffer fontBuffer;
|
|
VertexArrayObject array;
|
|
};
|
|
|
|
} // namespace mbgl
|