blob: fbf519e389816da10340cbc785257d7d47340075 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "garnet/bin/ui/scene_manager/resources/shapes/planar_shape.h"
namespace scene_manager {
class CircleShape final : public PlanarShape {
public:
static const ResourceTypeInfo kTypeInfo;
CircleShape(Session* session, scenic::ResourceId id, float initial_radius);
float radius() const { return radius_; }
// |Resource|.
void Accept(class ResourceVisitor* visitor) override;
// |PlanarShape|.
bool ContainsPoint(const escher::vec2& point) const override;
// |Shape|.
escher::Object GenerateRenderObject(
const escher::mat4& transform,
const escher::MaterialPtr& material) override;
private:
float radius_;
};
} // namespace scene_manager