blob: f12452751cd93424d0394ec0d21c7489600f17ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef MBGL_RENDERER_DEBUGBUCKET
#define MBGL_RENDERER_DEBUGBUCKET
#include <mbgl/tile/tile_data.hpp>
#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 PlainShader;
namespace util {
class GLObjectStore;
}
class DebugBucket : private util::noncopyable {
public:
DebugBucket(TileID id, TileData::State,
optional<SystemTimePoint> modified,
optional<SystemTimePoint> expires,
MapDebugOptions);
void drawLines(PlainShader&, gl::GLObjectStore&);
void drawPoints(PlainShader&, gl::GLObjectStore&);
const TileData::State state;
const optional<SystemTimePoint> modified;
const optional<SystemTimePoint> expires;
const MapDebugOptions debugMode;
private:
DebugFontBuffer fontBuffer;
VertexArrayObject array;
};
} // namespace mbgl
#endif
|