Files
MapLibreParticleLab/include/mbgl/gfx/drawable_impl.hpp
Tim Sylvester 4cac8a8dfb Topic/atlas tex 2d (#1194)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-08-31 15:36:19 +02:00

25 lines
523 B
C++

#pragma once
#include <mbgl/gfx/drawable.hpp>
namespace mbgl {
namespace gfx {
struct Drawable::DrawSegment {
DrawSegment(gfx::DrawMode mode_, Segment<void>&& segment_)
: mode(mode_),
segment(std::move(segment_)) {}
const gfx::DrawMode& getMode() const { return mode; }
Segment<void>& getSegment() { return segment; }
const Segment<void>& getSegment() const { return segment; }
protected:
gfx::DrawMode mode;
Segment<void> segment;
};
} // namespace gfx
} // namespace mbgl