- static rendering now also runs in a separate thread; you have to start it with map.start(Map::Mode::Static) and join the thread with map.stop() before destructing the Map object - map.renderStill() takes a callback with will be invoked on the *map* thread, so you'll have to figure out your own method of dispatching back to the main thread.
22 lines
328 B
C++
22 lines
328 B
C++
#ifndef MBGL_MAP_STILL_IMAGE
|
|
#define MBGL_MAP_STILL_IMAGE
|
|
|
|
#include <mbgl/util/noncopyable.hpp>
|
|
|
|
#include <string>
|
|
#include <cstdint>
|
|
|
|
namespace mbgl {
|
|
|
|
class StillImage : util::noncopyable {
|
|
public:
|
|
uint16_t width = 0;
|
|
uint16_t height = 0;
|
|
using Pixel = uint32_t;
|
|
std::unique_ptr<Pixel[]> pixels;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|