#include <scene.h>
Definition at line 18 of file scene.h.
◆ Scene() [1/2]
impeller::scene::Scene::Scene |
( |
| ) |
|
|
delete |
◆ Scene() [2/2]
impeller::scene::Scene::Scene |
( |
std::shared_ptr< SceneContext > |
scene_context | ) |
|
|
explicit |
Definition at line 19 of file scene.cc.
20 : scene_context_(std::move(scene_context)) {
21 root_.is_root_ = true;
22};
◆ ~Scene()
impeller::scene::Scene::~Scene |
( |
| ) |
|
Definition at line 24 of file scene.cc.
24 {
25 for (
auto& child :
GetRoot().GetChildren()) {
26 child->parent_ = nullptr;
27 }
28}
◆ GetRoot()
Node & impeller::scene::Scene::GetRoot |
( |
| ) |
|
Definition at line 30 of file scene.cc.
30 {
31 return root_;
32}
◆ Render() [1/2]
bool impeller::scene::Scene::Render |
( |
const RenderTarget & |
render_target, |
|
|
const Camera & |
camera |
|
) |
| |
Definition at line 67 of file scene.cc.
67 {
68 return Render(render_target,
69 camera.GetTransform(render_target.GetRenderTargetSize()));
70}
bool Render(const RenderTarget &render_target, const Matrix &camera_transform)
◆ Render() [2/2]
bool impeller::scene::Scene::Render |
( |
const RenderTarget & |
render_target, |
|
|
const Matrix & |
camera_transform |
|
) |
| |
Definition at line 34 of file scene.cc.
35 {
37 [context = scene_context_]() { context->GetTransientsBuffer().
Reset(); });
38
39
42 *scene_context_->GetContext()->GetResourceAllocator(),
45 return false;
46 }
47
48
49
50 std::shared_ptr<CommandBuffer> command_buffer =
51 encoder.BuildSceneCommandBuffer(*scene_context_, camera_transform,
52 render_target);
53
54
55
56 if (!scene_context_->GetContext()
57 ->GetCommandQueue()
58 ->Submit({command_buffer})
59 .ok()) {
61 return false;
62 }
63
64 return true;
65}
Wraps a closure that is invoked in the destructor unless released by the caller.
bool Render(SceneEncoder &encoder, Allocator &allocator, const Matrix &parent_transform)
#define FML_LOG(severity)
SK_API sk_sp< PrecompileColorFilter > Matrix()
The documentation for this class was generated from the following files: