Files
MapLibreParticleLab/include/mbgl/map/still_image.hpp
Konstantin Käfer 46bf226910 align static render mode and still image render mode
- 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.
2015-04-17 13:40:42 +02:00

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