Add clang-format (#1086)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Bart Louwers
2023-05-01 16:57:37 +02:00
committed by GitHub
parent 403a12bd1b
commit 71f6da2722
1018 changed files with 27876 additions and 25862 deletions

View File

@@ -13,24 +13,17 @@ namespace uniforms {
MBGL_DEFINE_UNIFORM_SCALAR(float, intensity);
} // namespace uniforms
class HeatmapProgram final : public Program<
HeatmapProgram,
shaders::BuiltIn::HeatmapProgram,
gfx::PrimitiveType::Triangle,
TypeList<
attributes::pos>,
TypeList<
uniforms::intensity,
uniforms::matrix,
uniforms::heatmap::extrude_scale>,
TypeList<>,
style::HeatmapPaintProperties>
{
class HeatmapProgram final
: public Program<HeatmapProgram,
shaders::BuiltIn::HeatmapProgram,
gfx::PrimitiveType::Triangle,
TypeList<attributes::pos>,
TypeList<uniforms::intensity, uniforms::matrix, uniforms::heatmap::extrude_scale>,
TypeList<>,
style::HeatmapPaintProperties> {
public:
static constexpr std::string_view Name{"HeatmapProgram"};
const std::string_view typeName() const noexcept override {
return Name;
}
const std::string_view typeName() const noexcept override { return Name; }
using Program::Program;
@@ -41,12 +34,8 @@ public:
* @param {number} ey extrude normal
*/
static LayoutVertex vertex(Point<int16_t> p, float ex, float ey) {
return LayoutVertex {
{{
static_cast<int16_t>((p.x * 2) + ((ex + 1) / 2)),
static_cast<int16_t>((p.y * 2) + ((ey + 1) / 2))
}}
};
return LayoutVertex{
{{static_cast<int16_t>((p.x * 2) + ((ex + 1) / 2)), static_cast<int16_t>((p.y * 2) + ((ey + 1) / 2))}}};
}
};