| Flutter Impeller |

skin.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 #pragma once
6
7 #include <memory>
8 #include <optional>
9
10 #include "flutter/fml/macros.h"
11
12 #include "impeller/core/allocator.h"
13 #include "impeller/core/texture.h"
14 #include "impeller/scene/importer/scene_flatbuffers.h"
15 #include "impeller/scene/node.h"
16
17 namespace impeller {
18 namespace scene {
19
20 class Skin final {
21 public:
22 static std::unique_ptr<Skin> MakeFromFlatbuffer(
23 const fb::Skin& skin,
24 const std::vector<std::shared_ptr<Node>>& scene_nodes);
25 ~Skin();
26
27 Skin(Skin&&);
28 Skin& operator=(Skin&&);
29
30 std::shared_ptr<Texture> GetJointsTexture(Allocator& allocator);
31
32 private:
33 Skin();
34
35 std::vector<std::shared_ptr<Node>> joints_;
36 std::vector<Matrix> inverse_bind_matrices_;
37
38 FML_DISALLOW_COPY_AND_ASSIGN(Skin);
39 };
40
41 } // namespace scene
42 } // namespace impeller
impeller::scene::Skin::MakeFromFlatbuffer
static std::unique_ptr< Skin > MakeFromFlatbuffer(const fb::Skin &skin, const std::vector< std::shared_ptr< Node >> &scene_nodes)
Definition: skin.cc:19
impeller::scene::Skin::~Skin
~Skin()
node.h
impeller::Allocator
An object that allocates device memory.
Definition: allocator.h:25
impeller::scene::Skin
Definition: skin.h:20
allocator.h
impeller::scene::Skin::operator=
Skin & operator=(Skin &&)
texture.h
impeller::scene::Skin::GetJointsTexture
std::shared_ptr< Texture > GetJointsTexture(Allocator &allocator)
Definition: skin.cc:65
impeller
Definition: aiks_context.cc:10