Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
scene.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_SCENE_SCENE_H_
6#define FLUTTER_IMPELLER_SCENE_SCENE_H_
7
8#include <memory>
9#include <vector>
10
11#include "flutter/fml/macros.h"
12
15#include "impeller/scene/node.h"
17
18namespace impeller {
19namespace scene {
20
21class Scene {
22 public:
23 Scene() = delete;
24
25 explicit Scene(std::shared_ptr<SceneContext> scene_context);
26
27 ~Scene();
28
29 Node& GetRoot();
30
31 bool Render(const RenderTarget& render_target,
32 const Matrix& camera_transform);
33
34 bool Render(const RenderTarget& render_target, const Camera& camera);
35
36 private:
37 std::shared_ptr<SceneContext> scene_context_;
38 Node root_;
39
40 Scene(const Scene&) = delete;
41
42 Scene& operator=(const Scene&) = delete;
43};
44
45} // namespace scene
46} // namespace impeller
47
48#endif // FLUTTER_IMPELLER_SCENE_SCENE_H_
bool Render(const RenderTarget &render_target, const Matrix &camera_transform)
Definition scene.cc:34
A 4x4 matrix using column-major storage.
Definition matrix.h:37