blob: 6a69e79e2be3fe3a065f5632de123884d72f8f60 [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.
#pragma once
#include <memory>
#include <vector>
#include "flutter/fml/macros.h"
#include "impeller/renderer/render_target.h"
#include "impeller/scene/camera.h"
#include "impeller/scene/scene_entity.h"
namespace impeller {
namespace scene {
class Scene {
public:
Scene() = delete;
explicit Scene(const std::shared_ptr<Context>& context);
void Add(const std::shared_ptr<SceneEntity>& child);
bool Render(const RenderTarget& render_target, const Camera& camera) const;
private:
std::shared_ptr<Context> context_;
SceneEntity root_;
FML_DISALLOW_COPY_AND_ASSIGN(Scene);
};
} // namespace scene
} // namespace impeller