20 lines
421 B
C++
20 lines
421 B
C++
#include <mbgl/style/layer_impl.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace style {
|
|
|
|
const std::string& Layer::Impl::bucketName() const {
|
|
return ref.empty() ? id : ref;
|
|
}
|
|
|
|
bool Layer::Impl::hasRenderPass(RenderPass pass) const {
|
|
return bool(passes & pass);
|
|
}
|
|
|
|
bool Layer::Impl::needsRendering() const {
|
|
return passes != RenderPass::None && visibility != VisibilityType::None;
|
|
}
|
|
|
|
} // namespace style
|
|
} // namespace mbgl
|