blob: 47ed75f18b6d5b146311ec93b5d38289efa8373e [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/scene/geometry.h"
#include <memory>
namespace impeller {
namespace scene {
//------------------------------------------------------------------------------
/// Geometry
///
std::shared_ptr<CuboidGeometry> Geometry::MakeCuboid(Vector3 size) {
auto result = std::make_shared<CuboidGeometry>();
result->SetSize(size);
return result;
}
//------------------------------------------------------------------------------
/// CuboidGeometry
///
void CuboidGeometry::SetSize(Vector3 size) {
size_ = size;
}
VertexBuffer CuboidGeometry::GetVertexBuffer(
std::shared_ptr<Allocator>& allocator) const {
return {};
}
} // namespace scene
} // namespace impeller